Show custom pages in public site

This commit is contained in:
Amaia Castro
2017-03-17 13:36:00 +01:00
parent 255b57cc85
commit 54fab919e5
11 changed files with 167 additions and 38 deletions

View File

@@ -0,0 +1,15 @@
<% provide :title do %><%= @custom_page.title %><% end %>
<div class="row margin-top">
<div class="small-12 medium-9 column">
<h1><%= @custom_page.title %></h1>
<h2><%= @custom_page.subtitle %></h2>
<%= raw @custom_page.content %>
</div>
<div class="small-12 medium-3 column">
<%= render '/shared/print' if @custom_page.print_content_flag %>
</div>
</div>

View File

@@ -4,4 +4,8 @@
<li><%= link_to t("pages.more_info.other.how_to_use", org_name: setting['org_name']), faq_path %></li>
<li><%= link_to t("pages.more_info.other.facts"), participation_facts_path %></li>
<li><%= link_to t("pages.more_info.other.world"), participation_world_path %></li>
<% SiteCustomization::Page.with_more_info_flag.each do |custom_page| %>
<li><%= link_to custom_page.title, page_path(custom_page.slug) %></li>
<% end %>
</ul>