##// END OF EJS Templates
Add breadcrumb nav for the forums (#892)....
Jean-Philippe Lang -
r1284:b9e380c9febe
parent child
Show More
@@ -156,6 +156,10 module ApplicationHelper
156 156 links.size > 1 ? l(:label_display_per_page, links.join(', ')) : nil
157 157 end
158 158
159 def breadcrumb(*args)
160 content_tag('p', args.join(' » ') + ' » ', :class => 'breadcrumb')
161 end
162
159 163 def html_title(*args)
160 164 if args.empty?
161 165 title = []
@@ -1,3 +1,5
1 <%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}) %>
2
1 3 <div class="contextual">
2 4 <%= link_to_if_authorized l(:label_message_new),
3 5 {:controller => 'messages', :action => 'new', :board_id => @board},
@@ -1,9 +1,12
1 <%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}),
2 link_to(h(@board.name), {:controller => 'boards', :action => 'show', :project_id => @project, :id => @board}) %>
3
1 4 <div class="contextual">
2 5 <%= link_to_if_authorized l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'icon icon-edit' %>
3 6 <%= link_to_if_authorized l(:button_delete), {:action => 'destroy', :id => @topic}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del' %>
4 7 </div>
5 8
6 <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%=h @topic.subject %></h2>
9 <h2><%=h @topic.subject %></h2>
7 10
8 11 <div class="message">
9 12 <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
@@ -159,6 +159,7 hr { width: 100%; height: 1px; background: #ccc; border: 0;}
159 159 textarea.wiki-edit { width: 99%; }
160 160 li p {margin-top: 0;}
161 161 div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;}
162 p.breadcrumb { font-size: 0.9em; margin: 4px 0 4px 0;}
162 163
163 164 fieldset#filters .buttons { text-align: right; font-size: 0.9em; margin: 0 4px 0px 0; }
164 165
General Comments 0
You need to be logged in to leave comments. Login now