universe scope avatars on content#index pages

This commit is contained in:
drusepth 2022-04-15 13:52:37 -07:00
parent 690dd47ce9
commit b4538fbb14

View File

@ -5,7 +5,11 @@
<div class="max-w-5xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="-mt-12 sm:-mt-16 sm:flex sm:items-end sm:space-x-5">
<div class="flex">
<%= image_tag current_user.image_url, class: 'h-24 w-24 rounded-full ring-4 ring-white sm:h-32 sm:w-32' %>
<% if @universe_scope %>
<%= image_tag @universe_scope.random_image_including_private, class: 'h-24 w-24 rounded-full ring-4 ring-purple-800 sm:h-32 sm:w-32' %>
<% else %>
<%= image_tag current_user.image_url, class: 'h-24 w-24 rounded-full ring-4 ring-green-800 sm:h-32 sm:w-32' %>
<% end %>
</div>
<div class="mt-6 sm:flex-1 sm:min-w-0 sm:flex sm:items-center sm:justify-end sm:space-x-6 sm:pb-1">
<div class="sm:hidden md:block mt-6 min-w-0 flex-1">