%tr.topic
  %td=link_to forum_topic.title, [:forum, forum_topic]
  %td{:style => "width:160px;"}=forum_topic.category.title if forum_topic.category
  %td{:style => "width:100px;"}=forum_topic.forum_messages.count - 1
  %td{:style => "width:160px;"}
    = forum_topic.username
    %br
    il y a
    =distance_of_time_in_words Time.now, forum_topic.created_at
    
  
  %td{:style => "width:160px;"}
    -if forum_topic.forum_messages.count > 1
      =forum_topic.forum_messages.order("created_at ASC").last.username
      %br
      il y a
      =distance_of_time_in_words Time.now, forum_topic.forum_messages.order("created_at ASC").last.created_at

  -if moderator?
    %td
      =link_to i(:"trash-o"), [:forum, forum_topic], :confirm => "Supprimer ce topic ?", :method => :delete
      