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

preview only correct pages

parent 433281b0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -33,6 +33,7 @@ class Admin::Communication::Websites::PostsController < Admin::Communication::We
end
def show
@preview = true
breadcrumb
end
......
......@@ -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
......
......@@ -22,7 +22,7 @@
</div>
<%= yield %>
</div>
<%= render 'admin/application/preview' %>
<%= render 'admin/application/preview' if @preview %>
</main>
</div>
</div>
......
......@@ -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" %>
......
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