<%= l(:label_board) %>

<%= l(:label_user_location) %> : <%= link_to l(:label_borad_course), course_boards_path(@course) %> > <%= link_to @topic.subject, course_board_path(@course, @board) %>

<%= link_to image_tag(url_to_avatar(@topic.author),:width => '46',:height => '46'), user_path(@topic.author) %>

<%= @topic.subject %>


由<%= link_to_user_header @topic.author,false,:class=> 'problem_name' %> 添加于<%= format_time(@topic.created_on) %>

<%= link_to( l(:button_delete), {:action => 'destroy', :id => @topic}, :method => :post, :data => {:confirm => l(:text_are_you_sure)}, :class => 'talk_edit fr' ) if @message.course_destroyable_by?(User.current) %> <%= link_to( l(:button_edit), {:action => 'edit', :id => @topic}, :class => 'talk_edit fr' ) if @message.course_editable_by?(User.current) %>
<%= @topic.content.html_safe %>
<%= link_to_attachments_course @topic, :author => false %>
<% if User.current.logged? %> <%= toggle_link l(:button_reply), "reply", :focus => 'message_subject',:class => 'talk_edit fr' %> <% else %> <%= link_to l(:button_reply), signin_path,:class => 'talk_edit fr' %> <% end %> <%= link_to( l(:button_quote), {:action => 'quote', :id => @topic}, :remote => true, :method => 'get', :class => 'talk_edit fr', :remote => true) if !@topic.locked? && authorize_for('messages', 'reply') %>
<% unless @replies.empty? %> <% reply_count = 0 %> <% @replies.each do |message| %>
">
<%= link_to image_tag(url_to_avatar(message.author), :width => '46',:height => '46'), user_path(message.author) %>
<%= link_to_user_header message.author,false,:class => 'c_blue fb fl mb10 ' %> <%= format_time(message.created_on) %>

<%= textAreailizable message,:content,:attachments => message.attachments %>

<%= link_to_attachments_course message, :author => false %>
<%= link_to( l(:button_quote), {:action => 'quote', :id => message}, :remote => true, :method => 'get', :title => l(:button_quote)) if !@topic.locked? && authorize_for('messages', 'reply') %> <%= link_to( #image_tag('edit.png'), l(:button_edit), {:action => 'edit', :id => message}, :title => l(:button_edit) ) if message.course_editable_by?(User.current) %> <%= link_to( #image_tag('delete.png'), l(:button_delete), {:action => 'destroy', :id => message}, :method => :post, :data => {:confirm => l(:text_are_you_sure)}, :title => l(:button_delete) ) if message.course_destroyable_by?(User.current) %>
<% end %> <% end %> <% if !@topic.locked? && authorize_for_course('messages', 'reply') %> <% end %>
<% html_title @topic.subject %>