diff --git a/app/views/admin/communication/blocks/templates/pages/_preview.html.erb b/app/views/admin/communication/blocks/templates/pages/_preview.html.erb index 093f0ee87f17c9812321947d9e66c2b3e8d51e39..36bf97d8769a3bc319ac57580dc8cb27b15e23fc 100644 --- a/app/views/admin/communication/blocks/templates/pages/_preview.html.erb +++ b/app/views/admin/communication/blocks/templates/pages/_preview.html.erb @@ -41,7 +41,7 @@ class_name += " block-pages--" + @block.template.layout <% @block.template.selected_pages.each do |page| next if page.nil? %> - <li><%= link_to page, [:admin, page] %></li> + <li><%= link_to page, page.url %></li> <% end %> </ul> @@ -52,7 +52,7 @@ class_name += " block-pages--" + @block.template.layout %> <article class="card"> <h3> - <%= link_to page, [:admin, page] %> + <%= link_to page, page.url %> </h3> <% if @block.template.show_description %> <p><%= page.summary %></p> @@ -78,7 +78,7 @@ class_name += " block-pages--" + @block.template.layout %> <article> <h3> - <%= link_to page, [:admin, page] %> + <%= link_to page, page.url %> </h3> <% if @block.template.show_description %> <p><%= page.summary %></p> diff --git a/app/views/admin/communication/blocks/templates/posts/_preview.html.erb b/app/views/admin/communication/blocks/templates/posts/_preview.html.erb index ab394c4ea853f7fa6f34e99d3cef1798089282c3..d99f7bbb49fc513f8c2cb05bc3b7b8019f8f35b7 100644 --- a/app/views/admin/communication/blocks/templates/posts/_preview.html.erb +++ b/app/views/admin/communication/blocks/templates/posts/_preview.html.erb @@ -54,6 +54,7 @@ highlight_post = @block.template.selected_posts.first <% end %> <% end %> </div> + <% elsif @block.template.layout === "highlight" %> <div class="highlight"> <div class="highlight-post"> @@ -86,6 +87,7 @@ highlight_post = @block.template.selected_posts.first </div> </article> </div> + <div class="list"> <% if @block.data %> <% @block.template.selected_posts.each do |post|