diff --git a/app/views/boards/_course_show.html.erb b/app/views/boards/_course_show.html.erb index adc064e1a..f05f9befd 100644 --- a/app/views/boards/_course_show.html.erb +++ b/app/views/boards/_course_show.html.erb @@ -37,21 +37,23 @@
<%= h(topic.subject) %>
+ <% if topic.editable_by?(User.current) %> + <%= l(:button_edit) %> + <% end %> + <% if topic.sticky? %> + <%= l(:label_board_sticky)%> <% 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' + :class => 'talk_edit fr', + :style => ' margin-right: 10px;' ) if topic.destroyable_by?(User.current) %> -<%= h(topic.subject) %>
- <% if topic.sticky? %> - <%= l(:label_board_sticky)%> - <% end %><%= h(topic.subject) %>
+ <% if topic.editable_by?(User.current) %> + <%= l(:button_edit) %> + <% end %> + <% if topic.sticky? %> + <%= l(:label_board_sticky)%> <% end %> - <%= link_to( + <%= 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' + :class => 'talk_edit fr', + :style => ' margin-right: 10px;' ) if topic.destroyable_by?(User.current) %> -<%= h(topic.subject) %>
- <% if topic.sticky? %> - <%= l(:label_board_sticky)%> - <% end %> +