diff --git a/app/views/projects/_member_list.html.erb b/app/views/projects/_member_list.html.erb index 3b81b6615..d90a0d6d4 100644 --- a/app/views/projects/_member_list.html.erb +++ b/app/views/projects/_member_list.html.erb @@ -8,11 +8,14 @@ <%= member.user.nil? ? '' : (image_tag(url_to_avatar(member.user), :class => 'avatar')) %> <%= content_tag "div", link_to(member.user.show_name, user_path(member.user)), :class => "nomargin avatar_name" %> - <% unless member.user.user_extensions.identity ==0 %> - - <%= content_tag "p", "#{l(:label_bidding_user_studentcode)}#{' : '}#{member.user.user_extensions.student_id}", :class => "nomargin avatar_name" %> - <% end %> + <% if @project.project_type == 1 %> + <% unless member.user.user_extensions.identity ==0 %> + + <% if User.current.logged? && (!Member.where('user_id = ? and project_id = ?', User.current.id, @project.id).first.nil?) %> + <%= content_tag "p", "#{l(:label_bidding_user_studentcode)}#{' : '}#{member.user.user_extensions.student_id}", :class => "nomargin avatar_name" %> + <% end %> + <% end %>
 

diff --git a/app/views/users/user_fanslist.html.erb b/app/views/users/user_fanslist.html.erb index bfdf29075..51a6ab09a 100644 --- a/app/views/users/user_fanslist.html.erb +++ b/app/views/users/user_fanslist.html.erb @@ -10,7 +10,7 @@ :title => "#{user.name}" %> - diff --git a/app/views/users/user_watchlist.html.erb b/app/views/users/user_watchlist.html.erb index 31047e92b..bd9246f49 100644 --- a/app/views/users/user_watchlist.html.erb +++ b/app/views/users/user_watchlist.html.erb @@ -7,7 +7,7 @@
<%= content_tag "div", link_to_user(user.show_name), :class => "project_avatar_name" %> + <%= content_tag "div", link_to(user.show_name,user_path(user)), :class => "project_avatar_name" %>
<%= link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :title => "#{user.name}" %> - diff --git a/config/database.yml b/config/database.yml index 1073a8f6f..e29681aba 100644 --- a/config/database.yml +++ b/config/database.yml @@ -15,12 +15,12 @@ production: development: adapter: mysql2 - database: test - host: 10.107.17.20 + database: trustie + host: 10.0.47.98 #socket: /home/pdl/redmine-2.3.1-2/mysql/tmp/mysql.sock port: 3306 username: root - password: "1234" + password: "123456" encoding: utf8 # Warning: The database defined as "test" will be erased and
<%= content_tag "div", link_to_user(user.show_name), :class => "project_avatar_name" %> + <%= content_tag "div", link_to(user.show_name,user_path(user)), :class => "project_avatar_name" %>