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

Fix #744

parent c3ee6c22
No related branches found
No related tags found
No related merge requests found
......@@ -44,5 +44,9 @@ class Communication::Website::Page::Accessibility < Communication::Website::Page
def draftable?
false
end
def is_listed_among_children?
false
end
end
......@@ -44,5 +44,9 @@ class Communication::Website::Page::LegalTerm < Communication::Website::Page
def draftable?
false
end
def is_listed_among_children?
false
end
end
......@@ -44,5 +44,9 @@ class Communication::Website::Page::PrivacyPolicy < Communication::Website::Page
def draftable?
false
end
def is_listed_among_children?
false
end
end
......@@ -56,6 +56,10 @@ class Communication::Website::Page::Sitemap < Communication::Website::Page
def show_toc?
true
end
def is_listed_among_children?
false
end
def static_layout
'sitemap'
......
......@@ -54,6 +54,10 @@ module Communication::Website::Page::WithType
true
end
def is_listed_among_children?
true
end
def editable_width?
true
end
......
......@@ -19,7 +19,10 @@ bodyclass: <%= @about.best_bodyclass %>
<%= render 'admin/application/featured_image/static' %>
<% if @about.children.published.any? %>
children:
<% @about.children.published.ordered.each do |child| %>
<%
@about.children.published.ordered.each do |child|
next unless child.is_listed_among_children?
%>
- <%= child.path %>
<% end %>
<% end %>
......
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