Skip to content

Commit

Permalink
Merge pull request #238 from alphagov/consistent-breadcrumbs
Browse files Browse the repository at this point in the history
Show breadcrumbs consistently
  • Loading branch information
tijmenb authored Jan 25, 2017
2 parents 3e544ea + 311a219 commit 3f2ed53
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion app/views/content_items/case_study.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<%= content_for :title, "#{@content_item.page_title} - #{t("content_item.format.#{@content_item.document_type}", count: 1)}" %>

<%= render "shared/breadcrumbs" %>
<%= render 'shared/title_and_translations', content_item: @content_item %>
<%= render 'shared/withdrawal_notice', content_item: @content_item %>
<%= render 'shared/metadata', content_item: @content_item %>
Expand Down
2 changes: 0 additions & 2 deletions app/views/content_items/detailed_guide.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<%= content_for :title, @content_item.page_title %>

<%= render "shared/breadcrumbs" %>

<div class="grid-row">
<div class="column-two-thirds">
<%= render 'govuk_component/title', @content_item.title_and_context %>
Expand Down
1 change: 0 additions & 1 deletion app/views/content_items/document_collection.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<%= content_for :title, @content_item.page_title %>

<%= render "shared/breadcrumbs" %>
<%= render 'shared/title_and_translations', content_item: @content_item %>
<%= render 'shared/withdrawal_notice', content_item: @content_item %>
<%= render 'shared/metadata', content_item: @content_item %>
Expand Down
2 changes: 0 additions & 2 deletions app/views/content_items/publication.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<%= content_for :title, @content_item.page_title %>

<%= render "shared/breadcrumbs" %>

<div class="grid-row">
<div class="column-two-thirds">
<%= render 'govuk_component/title',
Expand Down
2 changes: 0 additions & 2 deletions app/views/content_items/topical_event_about_page.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<%= content_for :title, @content_item.title %>

<%= render "shared/breadcrumbs" %>

<%= render 'shared/title_and_translations', content_item: @content_item %>
<%= render 'shared/description', description: @content_item.description %>

Expand Down
1 change: 1 addition & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<div id="wrapper" class="<%= wrapper_class %>">
<main role="main" id="content" class="<%= @content_item.format.dasherize %>" lang="<%= I18n.locale %>">
<%= render_phase_label @content_item, content_for(:phase_message) %>
<%= render 'shared/breadcrumbs' %>
<%= yield %>
</main>
</div>
Expand Down

0 comments on commit 3f2ed53

Please sign in to comment.