diff --git a/app/javascript/articles/__tests__/Feed.test.jsx b/app/javascript/articles/__tests__/Feed.test.jsx
index 6f543caf9..8e4214d26 100644
--- a/app/javascript/articles/__tests__/Feed.test.jsx
+++ b/app/javascript/articles/__tests__/Feed.test.jsx
@@ -210,7 +210,7 @@ describe(' component', () => {
const lastCallbackResult =
callback.mock.calls[callback.mock.calls.length - 1][0];
expect(lastCallbackResult.feedItems[0]).toEqual(firstBillboard);
- // there is no second bilboard so podcasts get rendered in 4th place
+ // there is no second billboard so podcasts get rendered in 4th place
expect(lastCallbackResult.feedItems[3]).toEqual(podcastEpisodes);
expect(lastCallbackResult.feedItems[8]).toEqual(thirdBillboard);
});
@@ -249,7 +249,7 @@ describe(' component', () => {
const pinnedItem = feedPosts.find((o) => o.pinned === true);
// there is no first billboard
expect(lastCallbackResult.feedItems[0]).toEqual(pinnedItem);
- // there is no second bilboard so podcasts get rendered in 3rd place
+ // there is no second billboard so podcasts get rendered in 3rd place
expect(lastCallbackResult.feedItems[2]).toEqual(podcastEpisodes);
expect(lastCallbackResult.feedItems[7]).toEqual(thirdBillboard);
});
diff --git a/app/views/articles/index.html.erb b/app/views/articles/index.html.erb
index ffaa9aa54..a033fa553 100644
--- a/app/views/articles/index.html.erb
+++ b/app/views/articles/index.html.erb
@@ -27,7 +27,7 @@
<%= javascript_packs_with_chunks_tag "homePage", defer: true %>
<% cache(release_adjusted_cache_key("main-stories-index-#{params}-#{user_signed_in?}"), expires_in: 90.seconds) do %>
<% if @hero_billboard && FeatureFlag.enabled?(:hero_billboard) %>
- <%= render partial: "shared/display_ad", locals: { display_ad: @hero_billboard, data_context_type: BillboardEvent::CONTEXT_TYPE_HOME } %>
+ <%= render partial: "shared/billboard", locals: { billboard: @hero_billboard, data_context_type: BillboardEvent::CONTEXT_TYPE_HOME } %>
<% end %>
" data-which="<%= @list_of %>"
diff --git a/app/views/billboards/show.html.erb b/app/views/billboards/show.html.erb
index 37124916d..b2f3e221a 100644
--- a/app/views/billboards/show.html.erb
+++ b/app/views/billboards/show.html.erb
@@ -1,9 +1,9 @@
<% if @billboard %>
<% if user_signed_in? %>
- <%= render partial: "shared/display_ad", locals: { display_ad: @billboard, data_context_type: BillboardEvent::CONTEXT_TYPE_ARTICLE } %>
+ <%= render partial: "shared/billboard", locals: { billboard: @billboard, data_context_type: BillboardEvent::CONTEXT_TYPE_ARTICLE } %>
<% else %>
<% cache([params[:username], params[:slug], params[:placement_area]], expires_in: 15.minutes) do %>
- <%= render partial: "shared/display_ad", locals: { display_ad: @billboard, data_context_type: BillboardEvent::CONTEXT_TYPE_ARTICLE } %>
+ <%= render partial: "shared/billboard", locals: { billboard: @billboard, data_context_type: BillboardEvent::CONTEXT_TYPE_ARTICLE } %>
<% end %>
<% end %>
<% end %>
diff --git a/app/views/shared/_display_ad.html.erb b/app/views/shared/_billboard.html.erb
similarity index 60%
rename from app/views/shared/_display_ad.html.erb
rename to app/views/shared/_billboard.html.erb
index e5bec2c63..cd7880ecb 100644
--- a/app/views/shared/_display_ad.html.erb
+++ b/app/views/shared/_billboard.html.erb
@@ -1,43 +1,43 @@
-<% if display_ad.placement_area.start_with?("feed_") %>
+<% if billboard.placement_area.start_with?("feed_") %>
+ data-type-of="<%= billboard.type_of %>">
- <%= render partial: "shared/display_ad_header", locals: { display_ad: display_ad } %>
+ <%= render partial: "shared/billboard_header", locals: { billboard: billboard } %>
- <%= display_ad.processed_html.html_safe %>
+ <%= billboard.processed_html.html_safe %>
-<% elsif display_ad.placement_area == "home_hero" %>
+<% elsif billboard.placement_area == "home_hero" %>
<% else %>
<% end %>
diff --git a/app/views/shared/_display_ad_header.html.erb b/app/views/shared/_billboard_header.html.erb
similarity index 70%
rename from app/views/shared/_display_ad_header.html.erb
rename to app/views/shared/_billboard_header.html.erb
index fdc1402d8..430ede8d7 100644
--- a/app/views/shared/_display_ad_header.html.erb
+++ b/app/views/shared/_billboard_header.html.erb
@@ -1,11 +1,11 @@