Show custom pages in public site
This commit is contained in:
15
app/views/pages/custom_page.html.erb
Normal file
15
app/views/pages/custom_page.html.erb
Normal 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>
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user