You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.7 KiB
59 lines
1.7 KiB
6 years ago
|
<div class="contextual">
|
||
|
<% if User.current.logged? && User.current.member_of?(@project) %>
|
||
|
<%= link_to l(:label_board_new), new_project_board_path(@project), :class => 'icon icon-add' %>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
<h3 style="padding-top:0px;">
|
||
|
<%= l(:label_board_plural) %>
|
||
|
</h3>
|
||
|
<table class="list boards">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>
|
||
|
<%= l(:label_board) %>
|
||
|
</th>
|
||
|
<th>
|
||
|
<%= l(:label_topic_plural) %>
|
||
|
</th>
|
||
|
<th>
|
||
|
<%= l(:label_message_plural) %>
|
||
|
</th>
|
||
|
<th>
|
||
|
<%= l(:label_message_last) %>
|
||
|
</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<% Board.board_tree(@boards) do |board, level| %>
|
||
|
<tr class="<%= cycle 'odd', 'even' %>">
|
||
|
<td style="padding-left: <%= level * 18 %>px;">
|
||
|
<%= link_to h(board.name), project_board_path(board.project, board), :class => "board" %><br />
|
||
|
<%=h board.description %>
|
||
|
</td>
|
||
|
<td class="topic-count">
|
||
|
<%= board.topics_count %>
|
||
|
</td>
|
||
|
<td class="message-count">
|
||
|
<%= board.messages_count %>
|
||
|
</td>
|
||
|
<td class="last-message">
|
||
|
<% if board.last_message %>
|
||
|
<%= authoring board.last_message.created_on, board.last_message.author %><br />
|
||
|
<%= link_to_message board.last_message %>
|
||
|
<% end %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end %>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<% other_formats_links do |f| %>
|
||
|
<%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_messages => 1, :key => User.current.rss_key} %>
|
||
|
<% end %>
|
||
|
|
||
|
<% content_for :header_tags do %>
|
||
|
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :show_messages => 1, :key => User.current.rss_key}) %>
|
||
|
<% end %>
|
||
|
|
||
|
<% html_title l(:label_board_plural) %>
|