]> source.dussan.org Git - redmine.git/commitdiff
Add breadcrumb nav for the forums (#892).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 27 Mar 2008 18:41:42 +0000 (18:41 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 27 Mar 2008 18:41:42 +0000 (18:41 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1299 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb
app/views/boards/show.rhtml
app/views/messages/show.rhtml
public/stylesheets/application.css

index 510ecd15ebebb9d7e5377efc7e5fe4aa74185cbd..77019eba324bcd1f770446f6c36cb4100dab8f73 100644 (file)
@@ -156,6 +156,10 @@ module ApplicationHelper
     links.size > 1 ? l(:label_display_per_page, links.join(', ')) : nil
   end
   
+  def breadcrumb(*args)
+    content_tag('p', args.join(' &#187; ') + ' &#187; ', :class => 'breadcrumb')
+  end
+  
   def html_title(*args)
     if args.empty?
       title = []
index 54645622eebe79b60916c894ea85cb42deee2459..26d17ae56ae4f77cb9c1375f559f9d9c2ad084e9 100644 (file)
@@ -1,3 +1,5 @@
+<%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}) %>
+
 <div class="contextual">
 <%= link_to_if_authorized l(:label_message_new),
                           {:controller => 'messages', :action => 'new', :board_id => @board},
index 632f603ffa2417e1d47c5eacc3635d7da6e62219..ef7db71ef897cbb7e2135dc0bff38f47d3da1405 100644 (file)
@@ -1,9 +1,12 @@
+<%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}),
+               link_to(h(@board.name), {:controller => 'boards', :action => 'show', :project_id => @project, :id => @board}) %>
+
 <div class="contextual">
     <%= link_to_if_authorized l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'icon icon-edit' %>
     <%= link_to_if_authorized l(:button_delete), {:action => 'destroy', :id => @topic}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del' %>
 </div>
 
-<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%=h @topic.subject %></h2>
+<h2><%=h @topic.subject %></h2>
 
 <div class="message">
 <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
index c30367903f30fcee0684f50c8737b276d9e6643c..01b31fa454523152a16ce1ccd338a94510c83a73 100644 (file)
@@ -159,6 +159,7 @@ hr { width: 100%; height: 1px; background: #ccc; border: 0;}
 textarea.wiki-edit { width: 99%; }
 li p {margin-top: 0;}
 div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;}
+p.breadcrumb { font-size: 0.9em; margin: 4px 0 4px 0;}
 
 fieldset#filters .buttons { text-align: right; font-size: 0.9em; margin: 0 4px 0px 0; }