annotate app/views/boards/show.html.erb @ 1327:287f201c2802 redmine-2.2-integration

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