个人主页的学生真实姓名:暂时先隐藏,教师可以公开

This commit is contained in:
yutao 2015-07-22 15:59:22 +08:00
parent acebefc987
commit 5e643e7316
1 changed files with 6 additions and 2 deletions

View File

@ -150,7 +150,9 @@ $(".subNav").click(function(){
<% if @user.user_extensions!=nil && @user.user_extensions.identity == 2 %>
<li><%= l(:label_company_name) %>&nbsp;:</li>
<% elsif !@user.firstname.empty? || !@user.lastname.empty? %>
<li>真实姓名&nbsp;:</li>
<% if @user.user_extensions.identity == 0 %>
<li>真实姓名&nbsp;:</li>
<% end %>
<% end %>
<% unless @user.user_extensions.nil? %>
<% if @user.user_extensions.identity == 0 %>
@ -173,7 +175,9 @@ $(".subNav").click(function(){
</ul>
<ul class="leftbox_ul_right c_dgrey">
<li><%= format_date(@user.created_on) %></li>
<li style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="<%= @user.show_name %>"><%= @user.show_name %></li>
<% if @user.user_extensions.identity == 0 %>
<li style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="<%= @user.show_name %>"><%= @user.show_name %></li>
<% end %>
<% unless @user.user_extensions.nil? %>
<% if @user.user_extensions.identity == 0 %>
<li><%= get_technical_title @user %></li>