% if forum_topics.total_entries %>
<%= will_paginate forum_topics %>
<% end %>
<% if user_signed_in? %>
<% if @followed %>
<%= link_to((I18n.t 'fms.all'), forum_show_path(@forum), :id => 'filter_link') %>
<%= I18n.t 'fms.followed' %>
<% else %>
<%= I18n.t 'fms.all' %>
<%= link_to((I18n.t 'fms.followed'), forum_show_path(@forum)+"?followed=true", :id => 'filter_link') %>
<% end %>
<% end %>
<% unless forum_topics.empty? %>
<% for forum_topic in forum_topics %>
<% recent_comment_dom_id = (forum_topic.recent_comment ? dom_id(forum_topic.recent_comment) : '') %>
-
<%= forum_topic_icon(forum_topic) %>
<%= topic_title_link forum_topic, :rel => "bookmark" %>
<%= link_to(forum_forum_topic_path(@forum, forum_topic, :page => forum_topic.last_page, :anchor => recent_comment_dom_id)) do %>
<%= number_with_delimiter(forum_topic.hits) %>
<%= I18n.t 'fms.views' %>
<% end %>
<%= I18n.t 'fms.started' %>:
<%= forum_topic.user.display_name %>
<% if forum_topic.recent_comment %>
<%= link_to(forum_forum_topic_path(@forum, forum_topic, :page => forum_topic.last_page, :anchor => recent_comment_dom_id)) do %>
<%= I18n.t 'fms.last_post_on', :user => h(forum_topic.recent_comment.user.display_name), :date => format_date(forum_topic.recent_comment.created_at) %>
<% end %>
<% end %>
<% end %>
<% else %>
<% if @followed %>
<%= I18n.t "fms.no_followed_topics" %>
<% else %>
<%= I18n.t "fms.no_topics" %>
<% end %>
<% end %>
<%= will_paginate forum_topics %>