From 2d93cd4bdc921b8c08f011696d50999beb95140b Mon Sep 17 00:00:00 2001 From: alan <547533434@qq.com> Date: Fri, 8 May 2015 13:33:18 +0800 Subject: [PATCH] Signed-off-by: alan <547533434@qq.com> --- app/views/boards/_course_show.html.erb | 18 ++++++++++-------- app/views/boards/_project_show.html.erb | 21 ++++++++++++--------- 2 files changed, 22 insertions(+), 17 deletions(-) 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 @@
<% author = topic.author.to_s + ":" %> <%= link_to author, user_path(topic.author), :class =>"talkmain_name fl " %> - <% if topic.course_editable_by?(User.current) %> - <%= l(:button_edit) %> + +

  <%= 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 %>
diff --git a/app/views/boards/_project_show.html.erb b/app/views/boards/_project_show.html.erb index 124472f5c..a9698f546 100644 --- a/app/views/boards/_project_show.html.erb +++ b/app/views/boards/_project_show.html.erb @@ -37,21 +37,24 @@
<% author = topic.author.to_s + ":" %> <%= link_to author, user_path(topic.author), :class =>"talkmain_name fl " %> - <% if topic.editable_by?(User.current) %> - <%= l(:button_edit) %> + +

  <%= 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 %> +