@@ -156,6 +156,10 module ApplicationHelper | |||||
156 | links.size > 1 ? l(:label_display_per_page, links.join(', ')) : nil |
|
156 | links.size > 1 ? l(:label_display_per_page, links.join(', ')) : nil | |
157 | end |
|
157 | end | |
158 |
|
158 | |||
|
159 | def breadcrumb(*args) | |||
|
160 | content_tag('p', args.join(' » ') + ' » ', :class => 'breadcrumb') | |||
|
161 | end | |||
|
162 | ||||
159 | def html_title(*args) |
|
163 | def html_title(*args) | |
160 | if args.empty? |
|
164 | if args.empty? | |
161 | title = [] |
|
165 | title = [] |
@@ -1,3 +1,5 | |||||
|
1 | <%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}) %> | |||
|
2 | ||||
1 | <div class="contextual"> |
|
3 | <div class="contextual"> | |
2 | <%= link_to_if_authorized l(:label_message_new), |
|
4 | <%= link_to_if_authorized l(:label_message_new), | |
3 | {:controller => 'messages', :action => 'new', :board_id => @board}, |
|
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 | <div class="contextual"> |
|
4 | <div class="contextual"> | |
2 | <%= link_to_if_authorized l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'icon icon-edit' %> |
|
5 | <%= link_to_if_authorized l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'icon icon-edit' %> | |
3 | <%= link_to_if_authorized l(:button_delete), {:action => 'destroy', :id => @topic}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del' %> |
|
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 | </div> |
|
7 | </div> | |
5 |
|
8 | |||
6 | <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%=h @topic.subject %></h2> |
|
9 | <h2><%=h @topic.subject %></h2> | |
7 |
|
10 | |||
8 | <div class="message"> |
|
11 | <div class="message"> | |
9 | <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p> |
|
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 | textarea.wiki-edit { width: 99%; } |
|
159 | textarea.wiki-edit { width: 99%; } | |
160 | li p {margin-top: 0;} |
|
160 | li p {margin-top: 0;} | |
161 | div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;} |
|
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 | fieldset#filters .buttons { text-align: right; font-size: 0.9em; margin: 0 4px 0px 0; } |
|
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