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