<%= link_to l(:label_message_new),
new_board_message_path(@board),
:class => 'icon icon-add',
:onclick => 'showAndScrollTo("add-message", "message_subject"); return false;' if User.current.logged? %>
<% if User.current.logged? %>
<%= link_to h(@board.name), project_board_path(@project, @board) %> » <%= l(:label_message_new) %>
<%= form_for @message, :url => new_board_message_path(@board), :html => {:multipart => true, :id => 'message-form'} do |f| %>
<%= render :partial => 'messages/form', :locals => {:f => f} %>
<%= submit_tag l(:button_create) %>
<%= preview_link(preview_board_message_path(@board), 'message-form') %> |
<%= link_to l(:button_cancel), "#", :onclick => '$("#add-message").hide(); return false;' %>
<% end %>
<% end %>
<%= link_to image_tag(url_to_avatar(topic.author), :class => "avatar"), user_path(topic.author) %> |
<%= link_to h(topic.subject), board_message_path(@board, topic) %> |
<%=link_to (topic.replies_count), board_message_path(@board, topic) %> |
回答 |
|
标签 |
<% if topic.last_reply %>
<%= authoring topic.last_reply.created_on, topic.last_reply.author %> <% end %> |
|
<% end %>
<% else %>