* Initial setup work with error * Dropdown working with error fixed * Removed repition * Home page billboard dropdowns added * Created common file for dropdown * Complete display ad dropdown usage * Minor indentation fix * Minor UI updates * Minor test update * Dropdown for billboard optimisation * Added anchor tags * Display ad unified code * Design changes * Design changes * Changes to display ad click tracking * Style changes * Design change to admin display ad * Nit fix * Nit fix * Updated test
35 lines
1.8 KiB
Text
35 lines
1.8 KiB
Text
<div class="crayons-card crayons-card--secondary crayons-sponsorship"
|
|
data-display-unit data-id="<%= display_ad.id %>"
|
|
data-category-click="<%= DisplayAdEvent::CATEGORY_CLICK %>"
|
|
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>
|
|
<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") %>">
|
|
<%= crayons_icon_tag("small-overflow-horizontal", class: "pointer-events-none", title: t("display_ad.menu.icon")) %>
|
|
</button>
|
|
<div id="sponsorship-dropdown-<%= display_ad.id %>" class="crayons-dropdown right-0">
|
|
<ul class="list-none m-0">
|
|
<% if Page.exists?(slug: "billboards") %>
|
|
<li>
|
|
<a class="crayons-link crayons-link--block" href='/billboards'>
|
|
<%= crayons_icon_tag("info", aria_hidden: true, class: "c-btn__icon") %>
|
|
<%= I18n.t("display_ad.menu.what_is_a_billboard") %>
|
|
</a>
|
|
</li>
|
|
<% end %>
|
|
<li>
|
|
<a class="crayons-link crayons-link--block" href='/settings/customization#sponsors'>
|
|
<%= crayons_icon_tag("setting", aria_hidden: true, class: "c-btn__icon") %>
|
|
<%= I18n.t("display_ad.menu.manage_preferences") %>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="p-1 pt-3 text-styles text-styles--display-ad">
|
|
<%= display_ad.processed_html.html_safe %>
|
|
</div>
|
|
</div>
|