diff --git a/app/views/admin/users/show.html.erb b/app/views/admin/users/show.html.erb index 1007d4a..2c101b8 100644 --- a/app/views/admin/users/show.html.erb +++ b/app/views/admin/users/show.html.erb @@ -89,14 +89,42 @@
-

LDAP

+

Avatar

+ <% if @user.avatar.attached? %> + + + + + + + + + + + + + + + +
Image + <%= image_tag image_url_for(@user.avatar), class: "h-20 w-20 rounded-lg" %> +
Content type + <%= @user.avatar.content_type %> +
Size + <%= number_to_human_size(@user.avatar.blob.byte_size) %> +
+ <% else %> +

No avatar uploaded

+ <% end %> + +

LDAP

Avatar <% if @ldap_avatar.present? %> - JPEG size: <%= @ldap_avatar.size %> + JPEG size: <%= number_to_human_size(@ldap_avatar.size) %> <% else %> — <% end %>