<% author = topic.author.to_s + ":" %>
<%= link_to author, user_path(topic.author), :class =>"talkmain_name fl " %>
<% if topic.editable_by?(User.current) %>
<%= l(:button_edit) %>
<% end %>
<%= link_to(
l(:button_delete),
{:controller =>'messages',:action => 'destroy', :id => topic.id, :board_id => topic.board_id, :is_board=>'true'},
:method => :post,
:data => {:confirm => l(:text_are_you_sure)},
:class => 'talk_edit fr',
:style => ' margin-right: 10px;'
) if topic.destroyable_by?(User.current) %>
<% if topic.sticky? %>
<%= l(:label_board_sticky)%>
<% end %>
<%= topic.content.html_safe %>
<%= link_to_attachments_course topic, :author => false %>
<%= l(:label_activity_time)%>: <%= format_time topic.created_on %>