Skip to content

Commit

Permalink
Merge pull request #516 from alphagov/no-custom-metadata
Browse files Browse the repository at this point in the history
Use the same metadata for all pages
  • Loading branch information
fofr authored Nov 3, 2017
2 parents 9d75244 + c4957a3 commit 0e27c2f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
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 %>

0 comments on commit 0e27c2f

Please sign in to comment.