<%= tr8n_with_options_tag(:default_locale => 'en-US', :admin => true) do %> <%= render :partial => "/tr8n/common/header" %> <% unless @topics.empty? %>
<%=image_tag('/tr8n/images/plus.png')%> <%= link_to(tra("Start a new discussion topic"), :action => :topic, :mode => :create) %>
<%=tra("{language} Language Discussion Topics", nil, :language => tr8n_current_language.native_name) %>
<% @topics.each do |topic| %> <% style = (topic == @topics.last ? "" : "border-bottom:1px dotted #ccc;" ) %> <% end %>
<%=tra("Author", "Forum column header")%> <%=tra("Topic", "Forum column header")%> <%=tra("Posts", "Forum column header")%> <%=tra("Last Post", "Forum column header")%>
<%=tr8n_user_mugshot_tag(topic.translator, :linked => true)%> <%=tr8n_user_tag(topic.translator, :linked => true)%>
<%=topic.created_at.trl(:date_time) %>
<% if tr8n_current_user_is_translator? and topic.translator == tr8n_current_translator %> <%=link_to(tra("Delete"), {:action => :delete_topic, :topic_id => topic.id}, {:confirm => trl("Are you sure you want to delete this topic and all of the messages under it?")})%> <% end %>
<%=link_to(topic.topic, :action => :topic, :topic_id => topic.id)%>
<%=topic.post_count %> <% if topic.last_post %>
<%=topic.last_post.created_at.trl(:date_time) %> <% if topic.translator and topic.translator.user %> <%=tra("by {user}", "Name of the publisher", :user => [topic.translator.user, tr8n_user_tag(topic.translator, :linked => true)])%> <% end %>
<% message = topic.last_post.message[0..60] message << "..." if topic.last_post.message.length > 60 %>
"<%=link_to(h(message), :action => :topic, :topic_id =>topic.id, :last_page => true)%>"
<% end %>  
<%= page_entries_info(@topics, :entry_name => "forum topic", :skip_decorations => true) %> <%= will_paginate(@topics, :skip_decorations => true, :style => "text-align:right;") %>
<% end %> <%= render :partial => "new_topic", :locals => {:include_cancel_button => false} %> <%= render :partial => "/tr8n/common/footer" %> <% end %>