Only show avatar when available on admin user page
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Râu Cao 2023-10-25 22:15:28 +02:00
parent 8e090daa9c
commit 5075fef616
Signed by: raucao
GPG Key ID: 15E65F399D084BA9

View File

@ -63,10 +63,12 @@
</section> </section>
<section class="sm:flex-1 sm:pt-0"> <section class="sm:flex-1 sm:pt-0">
<% if @avatar.present? %>
<h3>LDAP<h3> <h3>LDAP<h3>
<p> <p>
<img src="data:image/jpeg;base64,<%= @avatar %>" class="h-48 w-48" /> <img src="data:image/jpeg;base64,<%= @avatar %>" class="h-48 w-48" />
</p> </p>
<% end %>
<!-- <h3>Actions</h3> --> <!-- <h3>Actions</h3> -->
</section> </section>
</div> </div>