From 0708279c5ec60b687711a5e8053603c3b128302a Mon Sep 17 00:00:00 2001 From: alan <547533434@qq.com> Date: Thu, 14 May 2015 15:42:20 +0800 Subject: [PATCH] Signed-off-by: alan <547533434@qq.com> --- app/views/boards/_course_show.html.erb | 14 +++++++------- app/views/boards/_edit.html.erb | 4 ++-- public/javascripts/project.js | 4 +++- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/views/boards/_course_show.html.erb b/app/views/boards/_course_show.html.erb index 19d0e6bc9..617b9428a 100644 --- a/app/views/boards/_course_show.html.erb +++ b/app/views/boards/_course_show.html.erb @@ -40,12 +40,10 @@
<%= h(topic.subject) %>
<% if topic.course_editable_by?(User.current) %> - <%= l(:button_edit) %> - <% end %> - <% if topic.sticky? %> - <%= l(:label_board_sticky)%> + <%= l(:button_edit) %> <% end %> + <%= link_to( l(:button_delete), {:controller =>'messages',:action => 'destroy', :id => topic.id, :board_id => topic.board_id, :is_board=>'true'}, @@ -55,7 +53,9 @@ :style => ' margin-right: 10px;' ) if topic.destroyable_by?(User.current) %> - + <% if topic.sticky? %> + <%= l(:label_board_sticky)%> + <% end %>