index.html.erb 1.38 KB
Newer Older
jplang's avatar
jplang committed
1 2
<h2><%= l(:label_board_plural) %></h2>

jplang's avatar
jplang committed
3
<table class="list boards">
jplang's avatar
jplang committed
4 5 6 7 8 9 10
  <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>
jplang's avatar
jplang committed
11
<% Board.board_tree(@boards) do |board, level| %>
12
  <tr class="<%= cycle 'odd', 'even' %>">
13
    <td class="name" style="padding-left: <%= level * 18 %>px;">
jplang's avatar
jplang committed
14
      <%= link_to board.name, project_board_path(board.project, board), :class => "board" %><br />
jplang's avatar
jplang committed
15 16
      <%=h board.description %>
    </td>
jplang's avatar
jplang committed
17 18 19
    <td class="topic-count"><%= board.topics_count %></td>
    <td class="message-count"><%= board.messages_count %></td>
    <td class="last-message">
jplang's avatar
jplang committed
20
      <% if board.last_message %>
jplang's avatar
jplang committed
21
      <%= authoring board.last_message.created_on, board.last_message.author %><br />
22
      <%= link_to_message board.last_message %>
jplang's avatar
jplang committed
23 24 25 26 27 28
      <% end %>
    </td>
  </tr>
<% end %>
  </tbody>
</table>
jplang's avatar
jplang committed
29

30
<% other_formats_links do |f| %>
31
  <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_messages => 1, :key => User.current.rss_key} %>
32
<% end %>
jplang's avatar
jplang committed
33 34

<% content_for :header_tags do %>
35
  <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :show_messages => 1, :key => User.current.rss_key}) %>
jplang's avatar
jplang committed
36
<% end %>
37 38

<% html_title l(:label_board_plural) %>