From b4538fbb14e3588218d57c90dc7fd01244a3cd1c Mon Sep 17 00:00:00 2001 From: drusepth Date: Fri, 15 Apr 2022 13:52:37 -0700 Subject: [PATCH] universe scope avatars on content#index pages --- app/views/content/index.html.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/content/index.html.erb b/app/views/content/index.html.erb index b36c2aeb..a7af251b 100644 --- a/app/views/content/index.html.erb +++ b/app/views/content/index.html.erb @@ -5,7 +5,11 @@
- <%= 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 %>