Sha256: 626bba952524400d57565960d84d5d88948281a6bfb3cf50dfc8daef30217b79

Contents?: true

Size: 1.13 KB

Versions: 29

Compression:

Stored size: 1.13 KB

Contents

<% if current_page_review.under_review? && current_page_review.show_review_banner? %>
  <div data-module='page-expiry' data-last-reviewed-on="<%= current_page_review.review_by %>">
    <div class='page-expiry--<%= current_page_review.show_expiry? ? "not-expired" : "default" %>'>
      This page was last reviewed on <%= format_date current_page_review.last_reviewed_on %>.

      <% if current_page_review.show_expiry? %>
        It needs to be reviewed again on <%= format_date current_page_review.review_by %>
        <% if current_page_review.owner_slack %>
        by the page owner <%= link_to current_page_review.owner_slack, current_page_review.owner_slack_url %>
        <% end %>.
      <% end %>
    </div>

    <% if current_page_review.show_expiry? %>
    <div class='page-expiry--expired'>
      This page was set to be reviewed before <%= format_date current_page_review.review_by %><% if current_page_review.owner_slack %>
       by the page owner <%= link_to current_page_review.owner_slack, current_page_review.owner_slack_url %><% end %>.
      This might mean the content is out of date.
    </div>
    <% end %>
  </div>
<% end %>

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
govuk_tech_docs-3.5.0 lib/source/layouts/_page_review.erb
govuk_tech_docs-3.4.5 lib/source/layouts/_page_review.erb
govuk_tech_docs-3.4.0 lib/source/layouts/_page_review.erb
govuk_tech_docs-3.3.1 lib/source/layouts/_page_review.erb
govuk_tech_docs-3.3.0 lib/source/layouts/_page_review.erb
govuk_tech_docs-3.2.1 lib/source/layouts/_page_review.erb
govuk_tech_docs-3.2.0 lib/source/layouts/_page_review.erb
govuk_tech_docs-3.1.0 lib/source/layouts/_page_review.erb
govuk_tech_docs-3.0.1 lib/source/layouts/_page_review.erb
govuk_tech_docs-3.0.0 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.4.3 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.4.2 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.4.1 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.4.0 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.3.0 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.2.2 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.2.1 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.2.0 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.1.1 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.1.0 lib/source/layouts/_page_review.erb