diff --git a/app/models/communication/website/page.rb b/app/models/communication/website/page.rb index 01499c8da5d93e38fb7fd87600ed886ba953d0e4..59132caf39f7e8d12dece9d9cb4bcb9c98de0a93 100644 --- a/app/models/communication/website/page.rb +++ b/app/models/communication/website/page.rb @@ -82,6 +82,10 @@ class Communication::Website::Page < ApplicationRecord "admin/communication/websites/pages/static" end + def static_layout + nil + end + def git_dependencies(website) dependencies = [self] + website.menus + diff --git a/app/models/communication/website/page/sitemap.rb b/app/models/communication/website/page/sitemap.rb index 8848742f2dc200219bc1321f26228de9409b8567..08f797fbe37530ae92e9beae1fb74a5c07ff9a6c 100644 --- a/app/models/communication/website/page/sitemap.rb +++ b/app/models/communication/website/page/sitemap.rb @@ -48,5 +48,9 @@ class Communication::Website::Page::Sitemap < Communication::Website::Page def draftable? false end + + def static_layout + 'sitemap' + end end diff --git a/app/views/admin/communication/websites/pages/static.html.erb b/app/views/admin/communication/websites/pages/static.html.erb index 211f38113bb59e5e27121d35142f36e45a727893..e9297aaa5b6d4a3948eb63d95c6d2fed6e4196d6 100644 --- a/app/views/admin/communication/websites/pages/static.html.erb +++ b/app/views/admin/communication/websites/pages/static.html.erb @@ -4,6 +4,9 @@ title: > breadcrumb_title: "<%= @about.breadcrumb_title.blank? ? @about.title : @about.breadcrumb_title %>" <%= render 'admin/application/static/permalink' %> <%= render 'admin/application/static/design' %> +<% if @about.static_layout %> +layout: <%= @about.static_layout %> +<% end %> <% if @about.is_a?(Communication::Website::Page::Person) %> has: administrators: <%= @website.has_administrators? %>