* feat: first pass at CTA Tag * fix: strip_tags before using the link * default hover * feat: add the type of cta * feat: add own ltag by copying the utility class * feat: rename property to style * feat: add style and width * feat: add xit test * feat: add spec for unordered options * chore: some css * feat: update the cta spec to remove style and width options * feat: move billboard related code out of widgets * fix: mobile display ad below the comments section * feat: cta_tag strip tags input * feat: update the editor docs * feat: add help text to teh liquid guide and the editor guide * feat: fix the css styles of the CTA * cgore: alphabetical order * chore: move everything on one line --------- Co-authored-by: Mac Siri <mac@forem.com>
31 lines
1.4 KiB
Text
31 lines
1.4 KiB
Text
<% if display_ad.placement_area.start_with?("feed_") %>
|
|
<div class="crayons-story crayons-story__display-ad billboard"
|
|
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 %>"
|
|
data-type-of="<%= display_ad.type_of %>">
|
|
<div class="crayons-story__body">
|
|
<div class="crayons-story__top">
|
|
<%= render partial: "shared/display_ad_header", locals: { display_ad: display_ad } %>
|
|
</div>
|
|
<div class="crayons-story__indention-display-ad">
|
|
<div class="text-styles text-styles--display-ad">
|
|
<%= display_ad.processed_html.html_safe %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% else %>
|
|
<div class="crayons-card crayons-card--secondary crayons-sponsorship billboard"
|
|
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 %>"
|
|
data-type-of="<%= display_ad.type_of %>">
|
|
<%= render partial: "shared/display_ad_header", locals: { display_ad: display_ad } %>
|
|
<div class="p-1 pt-3 text-styles text-styles--display-ad">
|
|
<%= display_ad.processed_html.html_safe %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|