<% if User.current.language == "zh"%> <%= h @board.name %> <% else %> <%= l(:project_module_boards) %> <% end %>

<% if User.current.logged? %> <%= l(:label_message_new) %> <% end %>
<% if !User.current.logged? %>
<%= l(:label_user_login_project_board) %> <%= link_to l(:label_user_login_new), signin_path, :class => "c_blue ml5" %>
<% end %>
    <%= render :partial => 'project_new_topic' %>

讨论区共有<%= @topic_count %>个帖子

<% if @topics.any? %> <% @topics.each do |topic| %>
<%= link_to image_tag(url_to_avatar(topic.author), :width=>"42",:height=>"42"), user_path(topic.author),:class =>'talkmain_pic fl' %>
<% author = topic.author.to_s + ":" %> <%= link_to author, user_path(topic.author), :class =>"talkmain_name fl " %>

  <%= h(topic.subject) %>

<% 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 %>
<% if User.current.logged? %> <%= l(:button_reply) %> <% end %>
<% reply = Message.new(:subject => "RE: #{@message.subject}")%> <% if !topic.locked? && authorize_for('messages', 'reply') %>
<% end %>
<% end %> <% end %>