Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the same metadata for all pages #516

Merged
merged 1 commit into from
Nov 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions app/presenters/content_item/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ def metadata
}
end

def metadata_for_taxonomy_navigation
data = metadata
data.delete(:part_of)
data
end

def document_footer
{
from: from,
Expand All @@ -32,11 +26,5 @@ def document_footer
other: {}
}
end

def document_footer_for_taxonomy_navigation
data = document_footer
data.delete(:part_of)
data
end
end
end
1 change: 0 additions & 1 deletion app/views/shared/_footer.html+taxonomy_navigation.erb

This file was deleted.

2 changes: 1 addition & 1 deletion app/views/shared/_metadata.html+taxonomy_navigation.erb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<%= render 'govuk_component/metadata', @content_item.metadata_for_taxonomy_navigation %>
<%= render 'govuk_component/metadata', @content_item.metadata %>