annotate .svn/pristine/ce/ce01f810d3a29f63f33f44d575176d9d1fd50f81.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 <%= board_breadcrumb(@board) %>
Chris@1295 2
Chris@1295 3 <div class="contextual">
Chris@1295 4 <%= link_to l(:label_message_new),
Chris@1295 5 new_board_message_path(@board),
Chris@1295 6 :class => 'icon icon-add',
Chris@1295 7 :onclick => 'showAndScrollTo("add-message", "message_subject"); return false;' if User.current.allowed_to?(:add_messages, @board.project) %>
Chris@1295 8 <%= watcher_link(@board, User.current) %>
Chris@1295 9 </div>
Chris@1295 10
Chris@1295 11 <div id="add-message" style="display:none;">
Chris@1295 12 <% if User.current.allowed_to?(:add_messages, @board.project) %>
Chris@1295 13 <h2><%= link_to h(@board.name), project_board_path(@project, @board) %> &#187; <%= l(:label_message_new) %></h2>
Chris@1295 14 <%= form_for @message, :url => new_board_message_path(@board), :html => {:multipart => true, :id => 'message-form'} do |f| %>
Chris@1295 15 <%= render :partial => 'messages/form', :locals => {:f => f} %>
Chris@1295 16 <p><%= submit_tag l(:button_create) %>
Chris@1295 17 <%= preview_link(preview_board_message_path(@board), 'message-form') %> |
Chris@1295 18 <%= link_to l(:button_cancel), "#", :onclick => '$("#add-message").hide(); return false;' %></p>
Chris@1295 19 <% end %>
Chris@1295 20 <div id="preview" class="wiki"></div>
Chris@1295 21 <% end %>
Chris@1295 22 </div>
Chris@1295 23
Chris@1295 24 <h2><%=h @board.name %></h2>
Chris@1295 25 <p class="subtitle"><%=h @board.description %></p>
Chris@1295 26
Chris@1295 27 <% if @topics.any? %>
Chris@1295 28 <table class="list messages">
Chris@1295 29 <thead><tr>
Chris@1295 30 <th><%= l(:field_subject) %></th>
Chris@1295 31 <th><%= l(:field_author) %></th>
Chris@1295 32 <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
Chris@1295 33 <%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %>
Chris@1295 34 <%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %>
Chris@1295 35 </tr></thead>
Chris@1295 36 <tbody>
Chris@1295 37 <% @topics.each do |topic| %>
Chris@1295 38 <tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
Chris@1295 39 <td class="subject"><%= link_to h(topic.subject), board_message_path(@board, topic) %></td>
Chris@1295 40 <td class="author"><%= link_to_user(topic.author) %></td>
Chris@1295 41 <td class="created_on"><%= format_time(topic.created_on) %></td>
Chris@1295 42 <td class="reply-count"><%= topic.replies_count %></td>
Chris@1295 43 <td class="last_message">
Chris@1295 44 <% if topic.last_reply %>
Chris@1295 45 <%= authoring topic.last_reply.created_on, topic.last_reply.author %><br />
Chris@1295 46 <%= link_to_message topic.last_reply %>
Chris@1295 47 <% end %>
Chris@1295 48 </td>
Chris@1295 49 </tr>
Chris@1295 50 <% end %>
Chris@1295 51 </tbody>
Chris@1295 52 </table>
Chris@1295 53 <p class="pagination"><%= pagination_links_full @topic_pages, @topic_count %></p>
Chris@1295 54 <% else %>
Chris@1295 55 <p class="nodata"><%= l(:label_no_data) %></p>
Chris@1295 56 <% end %>
Chris@1295 57
Chris@1295 58 <% other_formats_links do |f| %>
Chris@1295 59 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
Chris@1295 60 <% end %>
Chris@1295 61
Chris@1295 62 <% html_title @board.name %>
Chris@1295 63
Chris@1295 64 <% content_for :header_tags do %>
Chris@1295 65 <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %>
Chris@1295 66 <% end %>