diff --git a/app/views/users/_course_message.html.erb b/app/views/users/_course_message.html.erb index 4996f7730..3633b2134 100644 --- a/app/views/users/_course_message.html.erb +++ b/app/views/users/_course_message.html.erb @@ -1,4 +1,4 @@ -
+
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id,:host=>Setting.host_user), :alt => "用户头像" %> @@ -43,17 +43,34 @@
- +
+ <% end %>
diff --git a/app/views/users/_project_message.html.erb b/app/views/users/_project_message.html.erb index b9ebc2135..c31e4ac2e 100644 --- a/app/views/users/_project_message.html.erb +++ b/app/views/users/_project_message.html.erb @@ -1,4 +1,4 @@ -
+
<%= link_to image_tag(url_to_avatar(activity.author), :width => "50", :height => "50"), user_path(activity.author_id), :alt => "用户头像" %> @@ -44,6 +44,33 @@
+ <% if activity.author.id == User.current.id%> + + <% end %>
diff --git a/config/routes.rb b/config/routes.rb index 9326ac61e..e64670ff2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -413,12 +413,12 @@ RedmineApp::Application.routes.draw do match 'boards/:id/join_to_org_subfields', :to => 'boards#join_to_org_subfields' get 'boards/:board_id/topics/:id', :to => 'messages#show', :as => 'board_message' match 'boards/:board_id/topics/quote/:id', :to => 'messages#quote', :via => [:get, :post] - get 'boards/:board_id/topics/:id/edit', :to => 'messages#edit' + get 'boards/:board_id/topics/:id/edit', :to => 'messages#edit',:as=>'edit_board_message' post 'boards/:board_id/topics/preview', :to => 'messages#preview', :as => 'preview_board_message' post 'boards/:board_id/topics/:id/replies', :to => 'messages#reply' post 'boards/:board_id/topics/:id/edit', :to => 'messages#edit' - post 'boards/:board_id/topics/:id/destroy', :to => 'messages#destroy' + post 'boards/:board_id/topics/:id/destroy', :to => 'messages#destroy',:as=>'delete_board_message' match 'messages/join_org_subfield', :to => 'messages#join_org_subfield' match 'messages/get_subfield_on_click_org', :to => 'messages#get_subfield_on_click_org' match 'messages/join_org_subfields', :to => 'messages#join_org_subfields'