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

Fix #1056

parent 4808a987
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ class_name += " block-pages--" + @block.template.layout ...@@ -19,7 +19,7 @@ class_name += " block-pages--" + @block.template.layout
<% elsif @block.template.layout === "grid" && @block.template.page && @block.template.show_main_description %> <% elsif @block.template.layout === "grid" && @block.template.page && @block.template.show_main_description %>
<h2><%= link_to @block.title, @block.template.page.url %></h2> <h2><%= link_to @block.title, @block.template.page.url %></h2>
<p class="description"><%= @block.template.page.summary %></p> <p class="description"><%= @block.template.page&.summary %></p>
<% else %> <% else %>
<h2><%= @block.title %></h2> <h2><%= @block.title %></h2>
...@@ -28,12 +28,12 @@ class_name += " block-pages--" + @block.template.layout ...@@ -28,12 +28,12 @@ class_name += " block-pages--" + @block.template.layout
<% end %> <% end %>
<% if @block.template.layout === "cards" && @block.template.show_main_description && @block.data %> <% if @block.template.layout === "cards" && @block.template.show_main_description && @block.data %>
<div class="description"> <div class="description">
<p><%= @block.template.page.summary %></p> <p><%= @block.template.page&.summary %></p>
</div> </div>
<% end %> <% end %>
</div> </div>
<% if @block.template.layout === "list" && @block.template.show_main_description && @block.data %> <% if @block.template.layout === "list" && @block.template.show_main_description && @block.data %>
<p class="description"><%= @block.template.page.summary %></p> <p class="description"><%= @block.template.page&.summary %></p>
<% end %> <% end %>
<% end %> <% end %>
<% if @block.data %> <% if @block.data %>
......
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