Skip to content
Snippets Groups Projects
Commit 905b3248 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #1009

parent 4b7ea181
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,9 @@ class_name += " block-pages--" + @block.template.layout
<% unless @block.title.blank? %>
<% if @block.template.layout === "cards" || @block.template.layout === "list" %>
<h2><%= link_to @block.template.page, @block.template.page.url %></h2>
<% if @block.template.page %>
<h2><%= link_to @block.template.page, @block.template.page.url %></h2>
<% end %>
<% elsif @block.template.layout === "grid" && @block.template.page && @block.template.show_main_description %>
<h2><%= link_to @block.title, @block.template.page.url %></h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment