Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into develop
This commit is contained in:
commit
edfd7372bb
|
@ -201,7 +201,7 @@ class User < Principal
|
||||||
|
|
||||||
#选择项目成员时显示的用户信息文字
|
#选择项目成员时显示的用户信息文字
|
||||||
def userInfo
|
def userInfo
|
||||||
info=self.name + ' (' + self.login + ')';
|
info=self.nickname + ' (' + self.realname + ')';
|
||||||
end
|
end
|
||||||
|
|
||||||
###添加留言 fq
|
###添加留言 fq
|
||||||
|
@ -369,6 +369,10 @@ class User < Principal
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def nickname(formatter = nil)
|
||||||
|
login
|
||||||
|
end
|
||||||
|
|
||||||
def name(formatter = nil)
|
def name(formatter = nil)
|
||||||
login
|
login
|
||||||
end
|
end
|
||||||
|
|
|
@ -176,7 +176,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= l(:label_bidding_user_homework) %> :
|
<td><%= l(:label_bidding_user_homework) %> :
|
||||||
<% unless b_project.user.nil? %>
|
<% unless b_project.user.nil? %>
|
||||||
<%= link_to(b_project.user.lastname+b_project.user.firstname, user_path(b_project.user)) %>
|
<%= link_to(b_project.user.name, user_path(b_project.user)) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -194,7 +194,7 @@
|
||||||
<%= l(:label_bidding_user) %>
|
<%= l(:label_bidding_user) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% unless b_project.user.nil? %>
|
<% unless b_project.user.nil? %>
|
||||||
<%= b_project.user.lastname %><%= b_project.user.firstname %>
|
<%= b_project.user.name %>
|
||||||
<% end %></strong>
|
<% end %></strong>
|
||||||
<!-- added by bai 加入学号 -->
|
<!-- added by bai 加入学号 -->
|
||||||
<p><strong>
|
<p><strong>
|
||||||
|
|
|
@ -72,11 +72,9 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= content_tag('span', "#{l(:default_role_manager)}: ") %>
|
<%= content_tag('span', "#{l(:default_role_manager)}: ") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<!-- end -->
|
|
||||||
<!-- <%= content_tag('span', "#{l(:default_role_manager)}: ") %> -->
|
|
||||||
<% @admin = @project.project_infos%>
|
<% @admin = @project.project_infos%>
|
||||||
<% if @admin.size > 0 %>
|
<% if @admin.size > 0 %>
|
||||||
<%= content_tag('a', @admin.collect{|u| link_to(u.user.lastname+u.user.firstname, user_path(u.user_id))}.join(", ").html_safe) %>
|
<%= content_tag('a', @admin.collect{|u| link_to(u.user.name, user_path(u.user_id))}.join(", ").html_safe) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if(@project.project_type==1)%>
|
<% if(@project.project_type==1)%>
|
||||||
<%= l(:label_course_college) %>:
|
<%= l(:label_course_college) %>:
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</span>
|
</span>
|
||||||
<span class='font_bolder'>
|
<span class='font_bolder'>
|
||||||
<%= link_to(course.try(:teacher).try(:name), user_path(course.teacher)) %>
|
<%= link_to(course.try(:teacher).try(:realname), user_path(course.teacher)) %>
|
||||||
<%#=course.try(:teacher).try(:name)%>
|
<%#=course.try(:teacher).try(:name)%>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -154,8 +154,7 @@
|
||||||
<%= course.school.name.try(:gsub, /(.+)$/, '\1:') %>
|
<%= course.school.name.try(:gsub, /(.+)$/, '\1:') %>
|
||||||
</span>
|
</span>
|
||||||
<span class='font_bolder'>
|
<span class='font_bolder'>
|
||||||
<%= link_to(course.try(:teacher).try(:name), user_path(course.teacher)) %>
|
<%= link_to(course.try(:teacher).try(:realname), user_path(course.teacher)) %>
|
||||||
<%#=course.try(:teacher).try(:name)%>
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='desc_item text_nowrap' style="width: 310px;">
|
<div class='desc_item text_nowrap' style="width: 310px;">
|
||||||
|
@ -199,7 +198,6 @@
|
||||||
</span>
|
</span>
|
||||||
<span class='font_bolder'>
|
<span class='font_bolder'>
|
||||||
<%= link_to(course.try(:teacher).try(:name), user_path(course.teacher)) %>
|
<%= link_to(course.try(:teacher).try(:name), user_path(course.teacher)) %>
|
||||||
<%#=course.try(:teacher).try(:name)%>
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='desc_item text_nowrap' style="width: 310px;">
|
<div class='desc_item text_nowrap' style="width: 310px;">
|
||||||
|
|
Loading…
Reference in New Issue