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
This commit is contained in:
Lawrence 2023-03-03 13:19:09 -06:00 committed by GitHub
parent 727705dc89
commit b5744b08c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -335,11 +335,9 @@
}
img {
width: 100%;
height: auto;
border-radius: var(--radius);
display: inline-block;
vertical-align: middle;
margin: 10px auto;
}
}

View file

@ -4,7 +4,12 @@
data-category-impression="<%= DisplayAdEvent::CATEGORY_IMPRESSION %>"
data-context-type="<%= data_context_type %>">
<div class="crayons-sponsorship__header relative">
<div class="crayons-sponsorship__title"><%= Settings::Community.community_name %></div>
<% if Page.exists?(slug: "billboards") && display_ad.organization_id? && display_ad.type_of == "community" %>
<img width="24" height="24" class="radius-default crayons-sponsorship__image" src="<%= display_ad.organization.profile_image_url_for(length: 64) %>" alt="profile" loading="lazy" />
<div class="crayons-sponsorship__title pl-1 fs-s"><%= display_ad.organization.name %></div>
<% else %>
<div class="crayons-sponsorship__title"><%= Settings::Community.community_name %></div>
<% end %>
<button id="sponsorship-dropdown-trigger-<%= display_ad.id %>" aria-controls="sponsorship-dropdown-<%= display_ad.id %>" aria-expanded="false" aria-haspopup="true"
class="dropBtn crayons-sponsorship__dropdown crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon"
aria-label="<%= t("display_ad.menu.aria_label") %>">