diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 207f6e149..1033a5dd0 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -98,7 +98,7 @@ <% for user in @users -%>
<%= content_tag "p", "#{format_date(user.created_on)}#{l(:label_member_since)}", :class => "float_right member_since" %> - <%= get_avatar?(user) ? (link_to image_tag(avatar_image(user), :class => 'avatar'), :class => "avatar") : (link_to image_tag("/images/12_50.png", :class => 'avatar'), :class => "avatar") %> + <%= get_avatar?(user) ? (link_to image_tag(avatar_image(user), :class => 'avatar'), user_path(user), :class => "avatar") : (link_to image_tag("/images/12_50.png", :class => 'avatar'), user_path(user), :class => "avatar") %> <%= content_tag "div", link_to_user(user), :class => "nomargin avatar_name" %> <%= content_tag "div", content_tag("p", user.firstname), :class => "clear avatar_name" %>

diff --git a/config/routes.rb b/config/routes.rb index 7407b0dfe..59189de89 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -401,7 +401,7 @@ RedmineApp::Application.routes.draw do end end - ##############测试留言功能 fq + ##############测试留言功能 fq post 'words/new', :to => 'words#new' post 'words/create', :to => 'words#create' post 'words/append', :to => 'words#append' @@ -417,12 +417,12 @@ RedmineApp::Application.routes.draw do match 'bids/new_bid', :controller => 'bids', :action => 'new_bid' match 'bids/:id/show_project', :controller => 'bids', :action => 'show_project', :as => 'project_for_bid' match 'bids/:id/add', :controller => 'bids', :action => 'add' - # added by young + # added by young match 'bids', :controller => 'bids', :action => 'index' match 'bids/:id', :controller => 'bids', :action => 'show', :as => 'respond' - ########### added by liuping + ########### added by liuping match 'tags/add_tag',:to => 'tags#add_tag',:as=>"add_tag" match 'tags/delete_tag',:to => 'tags#delete_tag',:as=>"add_tag"