Skip to content

Commit

Permalink
Add last_updated timestamp on help_page format
Browse files Browse the repository at this point in the history
To ensure we are GDPR compliant we need to follow the privacy notice template where we have to include an updated timestamp on the page.

The `last_updated` uses the `public_updated_at` content_item attribute.
deborahchua committed May 17, 2018
1 parent b05114c commit 79f26dd
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/views/content_items/_body_with_related_links.html.erb
Original file line number Diff line number Diff line change
@@ -15,8 +15,7 @@
disable_youtube_expansions: true,
rich_govspeak: true %>

<% #https://github.com/alphagov/government-frontend/pull/329#issuecomment-297681738 %>
<% if false && @content_item.last_updated %>
<% if @content_item.last_updated %>
<p class="last-updated">
<%= t 'common.last_updated' %>: <%= @content_item.last_updated %>
</p>
2 changes: 1 addition & 1 deletion test/integration/help_page_test.rb
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ class HelpPageTest < ActionDispatch::IntegrationTest
setup_and_visit_content_item('help_page')
assert page.has_text?(@content_item["title"])

# assert page.has_text?("Last updated: 16 December 2014")
assert page.has_text?("Last updated: 16 December 2014")
assert_has_component_govspeak(@content_item["details"]["body"].squish)
end
end

0 comments on commit 79f26dd

Please sign in to comment.