Files
nairobi/app/views/pages/custom_page.html.erb
Javi Martín 5907ddf884 Use local variable in cards partial
This way it's going to be easier to reuse.
2021-01-14 17:45:14 +01:00

28 lines
713 B
Plaintext

<%= content_for :body_class, "custom-page" %>
<% provide :title do %><%= @custom_page.title %><% end %>
<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>