Files
grecia/app/views/pages/custom_page.html.erb
Javi Martín b9e137619a Simplify the way we provide the title in most cases
This is consistent with the way we're providing the main class.

Note we're still setting the title using a block in more complex cases.
2024-03-23 00:35:47 +01:00

28 lines
696 B
Plaintext

<% provide :title, @custom_page.title %>
<%= content_for :body_class, "custom-page" %>
<div class="row margin-top">
<div class="small-12 medium-9 column">
<h1><%= @custom_page.title %></h1>
<% if @custom_page.subtitle.present? %>
<h2><%= @custom_page.subtitle %></h2>
<% end %>
<%= auto_link_already_sanitized_html AdminWYSIWYGSanitizer.new.sanitize(@custom_page.content) %>
</div>
<% if @custom_page.print_content_flag %>
<div class="small-12 medium-3 column">
<%= render "/shared/print" %>
</div>
<% end %>
<% if @cards.any? %>
<div class="small-12 column">
<%= render "shared/cards", cards: @cards %>
</div>
<% end %>
</div>