diff --git a/app/controllers/admin/communication/websites/pages_controller.rb b/app/controllers/admin/communication/websites/pages_controller.rb index 2c1ce8f3c511caca7399b35dc71d7589f81bcc33..4c12a6a2b5549534b9cd20dae6ba8c0f1373b816 100644 --- a/app/controllers/admin/communication/websites/pages_controller.rb +++ b/app/controllers/admin/communication/websites/pages_controller.rb @@ -27,6 +27,7 @@ class Admin::Communication::Websites::PagesController < Admin::Communication::We end def show + @preview = true breadcrumb add_breadcrumb(@page, admin_communication_website_page_path(@page)) end diff --git a/app/controllers/admin/communication/websites/posts_controller.rb b/app/controllers/admin/communication/websites/posts_controller.rb index a08c1e0c1bf0570922953cb0a70ec540fcd2e119..b9d47807d28410f762ef5ef87330d2f80aabcea5 100644 --- a/app/controllers/admin/communication/websites/posts_controller.rb +++ b/app/controllers/admin/communication/websites/posts_controller.rb @@ -33,6 +33,7 @@ class Admin::Communication::Websites::PostsController < Admin::Communication::We end def show + @preview = true breadcrumb end diff --git a/app/controllers/admin/education/programs_controller.rb b/app/controllers/admin/education/programs_controller.rb index 4bc22f3298b91d20bea59e12c9b232a18cdf382f..b193f6384b3383f30ae4a54e9020931b781fd90e 100644 --- a/app/controllers/admin/education/programs_controller.rb +++ b/app/controllers/admin/education/programs_controller.rb @@ -50,6 +50,7 @@ class Admin::Education::ProgramsController < Admin::Education::ApplicationContro def show @roles = @program.university_roles.ordered @teacher_involvements = @program.university_person_involvements.includes(:person).ordered_by_name + @preview = true breadcrumb end diff --git a/app/views/admin/layouts/themes/_appstack.html.erb b/app/views/admin/layouts/themes/_appstack.html.erb index 71a38224537e494bffaf59cf0b9174d3bfe17c87..8ca84d7862310d69fdd76292152b3f3e87b8a25b 100644 --- a/app/views/admin/layouts/themes/_appstack.html.erb +++ b/app/views/admin/layouts/themes/_appstack.html.erb @@ -22,7 +22,7 @@ </div> <%= yield %> </div> - <%= render 'admin/application/preview' %> + <%= render 'admin/application/preview' if @preview %> </main> </div> </div> diff --git a/app/views/admin/layouts/themes/_pure.html.erb b/app/views/admin/layouts/themes/_pure.html.erb index 94278bc16ad345cd06b157a15f23fa90ab84c5b4..b5bfe97af04e6dd935348c68a86227b3b57ac607 100644 --- a/app/views/admin/layouts/themes/_pure.html.erb +++ b/app/views/admin/layouts/themes/_pure.html.erb @@ -15,7 +15,7 @@ <div class="position-relative"> <%= yield %> </div> - <%= render 'admin/application/preview' %> + <%= render 'admin/application/preview' if @preview %> </main> <%= render "admin/layouts/themes/pure/commands" %> <%= render "admin/layouts/themes/pure/footer" %>