mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-26 19:12:12 +00:00
Website now supports non 1:1 aspect ratio images
This commit is contained in:
@@ -15,7 +15,9 @@
|
||||
<% if current_user.photo.url.nil? %>
|
||||
<img src="https://upload.wikimedia.org/wikipedia/commons/8/89/Portrait_Placeholder.png" class="avatar dropdown-toggle img-circle">
|
||||
<% else %>
|
||||
<%= cl_image_tag current_user.photo, class: "avatar dropdown-toggle img-circle"%>
|
||||
<%= cl_image_tag(current_user.photo, class: "avatar dropdown-toggle img-circle", transformation: [
|
||||
{ gravity: "face:auto", width: 100, height: 100, radius: "max", crop: "crop" }
|
||||
])%>
|
||||
<% end %>
|
||||
</div>
|
||||
<ul class="dropdown-menu dropdown-menu-right polyglot-dropdown">
|
||||
|
||||
Reference in New Issue
Block a user