diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index 8f23129b4..099017767 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb @@ -5,4 +5,4 @@ <% end %> <% end %> -<%= render :file => "layouts/base" %> +<%= render :file => "layouts/base_admin" %> diff --git a/app/views/layouts/base_admin.html.erb b/app/views/layouts/base_admin.html.erb new file mode 100644 index 000000000..fe31c0816 --- /dev/null +++ b/app/views/layouts/base_admin.html.erb @@ -0,0 +1,80 @@ + + +
+ +<%= h @user.lastname<<@user.firstname %> <% unless @user.user_extensions.nil?%> - <% unless @user.user_extensions.identity == 2 %> - <% if @user.user_extensions.gender == 1 %> <%= image_tag("/images/sidebar/female.png", weight:"22px", height:"22px") %> - <% else %> <%= image_tag("/images/sidebar/male.png", weight:"25px", height:"25px") %> <% end %><% end %> - <% else %> <%= image_tag("/images/sidebar/male.png", weight:"25px", height:"25px") %> <% end %> | +<%= h @user.lastname<<@user.firstname %> + <% img_path = '' %> + <% unless @user.user_extensions.nil?%> + <% unless @user.user_extensions.identity == 2 %> + <% if @user.user_extensions.gender == 1 %> + <% img_uri = '/images/sidebar/female.png' %> + <% else %> + <% img_uri = '/images/sidebar/male.png' %> + <% end %> + <% end %> + <% else %> + <% img_uri = '/images/sidebar/female.png' %> + <% end %> | + <%= image_tag(img_uri, weight:"25px", height:"25px") %>
<% unless User.current == @user %> |