职称增加副教授等职称
This commit is contained in:
parent
ca0c7a4fb0
commit
09a994f76a
|
@ -2254,11 +2254,11 @@ module ApplicationHelper
|
|||
technical_title
|
||||
end
|
||||
|
||||
def get_user_roll identity
|
||||
def get_user_roll user
|
||||
technical_title = ""
|
||||
case identity.to_s
|
||||
case user.user_extensions.identity.to_s
|
||||
when "0"
|
||||
technical_title = l(:label_account_identity_teacher)
|
||||
technical_title = get_technical_title user
|
||||
when "1"
|
||||
technical_title = l(:label_account_identity_student)
|
||||
when "2"
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
<div class="cl"></div>
|
||||
<% if @user.user_extensions && @user.user_extensions.identity %>
|
||||
<p class="mb20 c_dark f14">
|
||||
<%= get_user_roll @user.user_extensions.identity %>
|
||||
<%= get_user_roll @user %>
|
||||
</p>
|
||||
<% end%>
|
||||
<div id="watch_user_btn_div">
|
||||
|
|
Loading…
Reference in New Issue