diff options
Diffstat (limited to 'app/views/messages')
-rw-r--r-- | app/views/messages/_form.html.erb | 2 | ||||
-rw-r--r-- | app/views/messages/edit.html.erb | 3 | ||||
-rw-r--r-- | app/views/messages/show.html.erb | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/app/views/messages/_form.html.erb b/app/views/messages/_form.html.erb index f7cd8e367..d9f48af5c 100644 --- a/app/views/messages/_form.html.erb +++ b/app/views/messages/_form.html.erb @@ -18,7 +18,7 @@ <% if !replying && !@message.new_record? && @message.safe_attribute?('board_id') %> <p><label><%= l(:label_board) %></label><br /> - <%= f.select :board_id, @project.boards.collect {|b| [b.name, b.id]} %></p> + <%= f.select :board_id, boards_options_for_select(@message.project.boards) %></p> <% end %> <p> diff --git a/app/views/messages/edit.html.erb b/app/views/messages/edit.html.erb index fdea28e87..7ce0560bb 100644 --- a/app/views/messages/edit.html.erb +++ b/app/views/messages/edit.html.erb @@ -1,5 +1,4 @@ -<%= breadcrumb link_to(l(:label_board_plural), project_boards_path(@project)), - link_to(h(@board.name), project_board_path(@project, @board)) %> +<%= board_breadcrumb(@message) %> <h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2> diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb index 8e9ecceca..db9a2c8af 100644 --- a/app/views/messages/show.html.erb +++ b/app/views/messages/show.html.erb @@ -1,5 +1,4 @@ -<%= breadcrumb link_to(l(:label_board_plural), project_boards_path(@project)), - link_to(h(@board.name), project_board_path(@project, @board)) %> +<%= board_breadcrumb(@message) %> <div class="contextual"> <%= watcher_tag(@topic, User.current) %> |