<%= link_to_if_authorized l(:label_message_new), {:controller => 'messages', :action => 'new', :board_id => @board}, :class => "icon icon-add" %> <%= watcher_tag(@board, User.current) %>

<%=h @board.name %>

<% if @topics.any? %> <%= sort_header_tag("#{Message.table_name}.created_on", :caption => l(:field_created_on)) %> <%= sort_header_tag("#{Message.table_name}.updated_on", :caption => l(:label_message_last)) %> <% @topics.each do |topic| %> <% end %>
<%= l(:field_subject) %> <%= l(:field_author) %><%= l(:label_reply_plural) %>
<%= link_to h(topic.subject), :controller => 'messages', :action => 'show', :board_id => @board, :id => topic %> <%= link_to_user topic.author %> <%= format_time(topic.created_on) %> <%= topic.replies_count %> <% if topic.last_reply %> <%= topic.last_reply.author.name %>, <%= format_time(topic.last_reply.created_on) %>
<%= link_to_message topic.last_reply %> <% end %>

<%= pagination_links_full @topic_pages %> [ <%= @topic_pages.current.first_item %> - <%= @topic_pages.current.last_item %> / <%= @topic_count %> ]

<% else %>

<%= l(:label_no_data) %>

<% end %>