diff options
Diffstat (limited to 'app/views/boards/index.rhtml')
-rw-r--r-- | app/views/boards/index.rhtml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/app/views/boards/index.rhtml b/app/views/boards/index.rhtml new file mode 100644 index 000000000..3291d0194 --- /dev/null +++ b/app/views/boards/index.rhtml @@ -0,0 +1,30 @@ +<h2><%= l(:label_board_plural) %></h2> + +<table class="list"> + <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> +<% for board in @boards %> + <tr class="<%= cycle 'odd', 'even' %>"> + <td> + <%= link_to h(board.name), {:action => 'show', :id => board}, :class => "icon22 icon22-comment" %><br /> + <%=h board.description %> + </td> + <td align="center"><%= board.topics_count %></td> + <td align="center"><%= board.messages_count %></td> + <td> + <small> + <% if board.last_message %> + <%= board.last_message.author.name %>, <%= format_time(board.last_message.created_on) %><br /> + <%= link_to_message board.last_message %> + <% end %> + </small> + </td> + </tr> +<% end %> + </tbody> +</table> |