diff --git a/app/views/boards/_course_show.html.erb b/app/views/boards/_course_show.html.erb index 045ff90f3..3b14ee767 100644 --- a/app/views/boards/_course_show.html.erb +++ b/app/views/boards/_course_show.html.erb @@ -141,8 +141,9 @@ <% end %> -
展开回复(<%= topic.replies_count.to_s%>)
- + <%if replies_all.first %> +
展开回复(<%= topic.replies_count.to_s%>)
+ <% end %> <% end %> <% end %> diff --git a/app/views/boards/_project_show.html.erb b/app/views/boards/_project_show.html.erb index 7b4c23a07..742b6ae6c 100644 --- a/app/views/boards/_project_show.html.erb +++ b/app/views/boards/_project_show.html.erb @@ -37,6 +37,18 @@
<% author = topic.author.to_s + ":" %> <%= link_to author, user_path(topic.author), :class =>"talkmain_name fl " %> + <%= link_to( + l(:button_edit), + {:action => 'edit', :id => @topic}, + :class => 'talk_edit fr' + ) if @message.editable_by?(User.current) %> + <%= link_to( + l(:button_delete), + {:action => 'destroy', :id => @topic}, + :method => :post, + :data => {:confirm => l(:text_are_you_sure)}, + :class => 'talk_edit fr' + ) if @message.destroyable_by?(User.current) %>

  <%= h(topic.subject) %>

<% if topic.sticky? %> <%= l(:label_board_sticky)%> @@ -144,8 +156,9 @@ <% end %>
+ <%if replies_all.first %>
展开回复(<%= topic.replies_count.to_s%>)
- + <% end %> <% end %> <% end %>