From b5744b08c635a1246cdb4e386a2466dbf460dce7 Mon Sep 17 00:00:00 2001 From: Lawrence Date: Fri, 3 Mar 2023 13:19:09 -0600 Subject: [PATCH] Billboards Ownership Style Rules (#19176) * display ad partial * add translations * replace views with partial * add context types * check if ad is community * not fully rounded * fix spec * updated styling * adjust spacing --- app/assets/stylesheets/widgets.scss | 2 -- app/views/shared/_display_ad.html.erb | 7 ++++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/widgets.scss b/app/assets/stylesheets/widgets.scss index 59e62866c..dbb0e8908 100644 --- a/app/assets/stylesheets/widgets.scss +++ b/app/assets/stylesheets/widgets.scss @@ -335,11 +335,9 @@ } img { - width: 100%; height: auto; border-radius: var(--radius); display: inline-block; vertical-align: middle; - margin: 10px auto; } } diff --git a/app/views/shared/_display_ad.html.erb b/app/views/shared/_display_ad.html.erb index 3b104a9be..9daa981e4 100644 --- a/app/views/shared/_display_ad.html.erb +++ b/app/views/shared/_display_ad.html.erb @@ -4,7 +4,12 @@ data-category-impression="<%= DisplayAdEvent::CATEGORY_IMPRESSION %>" data-context-type="<%= data_context_type %>">
-
<%= Settings::Community.community_name %>
+ <% if Page.exists?(slug: "billboards") && display_ad.organization_id? && display_ad.type_of == "community" %> + profile +
<%= display_ad.organization.name %>
+ <% else %> +
<%= Settings::Community.community_name %>
+ <% end %>