diff --git a/app/views/admin/display_ads/_form.html.erb b/app/views/admin/display_ads/_form.html.erb index 8159c5aa5..7487872a6 100644 --- a/app/views/admin/display_ads/_form.html.erb +++ b/app/views/admin/display_ads/_form.html.erb @@ -59,7 +59,7 @@
-
+
<% if @display_ad.persisted? %> <%= @display_ad.processed_html.html_safe %> <% else %> diff --git a/app/views/articles/show.html.erb b/app/views/articles/show.html.erb index 3e41e641e..8edec99de 100644 --- a/app/views/articles/show.html.erb +++ b/app/views/articles/show.html.erb @@ -193,7 +193,7 @@ <% cache("article-bottom-content-#{@article.id}-#{user_signed_in?}-#{(@organization || @user).latest_article_updated_at}", expires_in: 18.hours) do %> <% @display_ad = DisplayAd.for_display("post_comments", user_signed_in?) %> <% if @display_ad %> -
<% @sidebar_ad = DisplayAd.for_display("sidebar_right", user_signed_in?) %> <% if @sidebar_ad %> -
+
<%= @sidebar_ad.processed_html.html_safe %>
<% end %>