diff --git a/app/presenters/content_item/metadata.rb b/app/presenters/content_item/metadata.rb index 712d3c1b5..1bb66a424 100644 --- a/app/presenters/content_item/metadata.rb +++ b/app/presenters/content_item/metadata.rb @@ -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, @@ -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 diff --git a/app/views/shared/_footer.html+taxonomy_navigation.erb b/app/views/shared/_footer.html+taxonomy_navigation.erb deleted file mode 100644 index 856ef9490..000000000 --- a/app/views/shared/_footer.html+taxonomy_navigation.erb +++ /dev/null @@ -1 +0,0 @@ -<%= render 'govuk_component/document_footer', @content_item.document_footer_for_taxonomy_navigation %> diff --git a/app/views/shared/_metadata.html+taxonomy_navigation.erb b/app/views/shared/_metadata.html+taxonomy_navigation.erb index 4b204b06b..944b59911 100644 --- a/app/views/shared/_metadata.html+taxonomy_navigation.erb +++ b/app/views/shared/_metadata.html+taxonomy_navigation.erb @@ -1 +1 @@ -<%= render 'govuk_component/metadata', @content_item.metadata_for_taxonomy_navigation %> +<%= render 'govuk_component/metadata', @content_item.metadata %>