Sha256: 44d1adb677399c103770c7138badef66db33ce2fee8bed44f866036ec3fc7ac9

Contents?: true

Size: 1.08 KB

Versions: 15

Compression:

Stored size: 1.08 KB

Contents

<% if current_page_review.under_review? %>
  <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

15 entries across 15 versions & 2 rubygems

Version Path
govuk_tech_docs-2.0.4 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.0.3 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.0.2 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.0.1 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.0.0.pre.test.pre.release.pre.525 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.0.0.pre.test.pre.release.pre.524 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.0.0.test.pre.release.521 lib/source/layouts/_page_review.erb
govuk_tech_docs-2.0.0 lib/source/layouts/_page_review.erb
govuk_tech_docs-1.9.0.pre.rc2 lib/source/layouts/_page_review.erb
govuk_tech_docs-1.9.0.pre.gfe lib/source/layouts/_page_review.erb
govuk_tech_docs-1.8.3 lib/source/layouts/_page_review.erb
dss_tech_docs-0.1.2 lib/source/layouts/_page_review.erb
dss_tech_docs-0.1.1 lib/source/layouts/_page_review.erb
dss_tech_docs-0.1.0 lib/source/layouts/_page_review.erb
govuk_tech_docs-1.8.2 lib/source/layouts/_page_review.erb