diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index caf29ba90..1face5c38 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1961,4 +1961,8 @@ module ApplicationHelper end confirm_info end + + def get_technical_title user + #user.user_extensions.technical_title + end end diff --git a/app/views/layouts/base_users.html.erb b/app/views/layouts/base_users.html.erb index f241875bd..dbd6503b0 100644 --- a/app/views/layouts/base_users.html.erb +++ b/app/views/layouts/base_users.html.erb @@ -267,27 +267,32 @@ <% end %> - - - <%= l(:label_location) %>: - - - <%= @user.user_extensions.location %> - <%= @user.user_extensions.location_city %> - - - - <% if @user.user_extensions.identity == 0 %> - - <%= l(:label_technical_title) %>: - - - - - <% end %> - + <% unless @user.user_extensions.location.empty?%> + + + + <%= l(:label_location) %>: + + + <%= @user.user_extensions.location %> + <%= @user.user_extensions.location_city %> + + + <% end %> + <% unless @user.user_extensions.technical_title.nil?%> + + <% if @user.user_extensions.identity == 0 %> + + <%= l(:label_technical_title) %>: + + + + + <% end %> + + <%end%> <% if @user.user_extensions.identity == 1 %> - <% if(is_watching?(@user) ) %> + <% if(is_watching?(@user) ) && !@user.user_extensions.student_id.empty? %> <%= l(:label_bidding_user_studentcode)%>: