-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathforbidden.html.erb
More file actions
26 lines (25 loc) · 1.13 KB
/
forbidden.html.erb
File metadata and controls
26 lines (25 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<% content_for :page_title, "Permissions error" %>
<% content_for :title, "Permissions error" %>
<% content_for :title_margin_bottom, 6 %>
<div class="govuk-grid-row govuk-!-margin-bottom-0">
<div class="govuk-grid-column-two-thirds">
<p class="govuk-body">You do not have permission to access this page.</p>
<% if @edition&.persisted? && can?(:perform_administrative_tasks, Edition) %>
<p class="govuk-body">
<a href="<%= edit_access_limited_admin_edition_path(@edition) %>" class="govuk-link">
As an administrator, you can update the access permissions of the page.
</a>
</p>
<p class="govuk-body">Alternatively, if you need to:</p>
<% else %>
<p class="govuk-body">If you need to:</p>
<% end %>
<%= render "govuk_publishing_components/components/list", {
visible_counters: true,
items: [
"view the page, request the preview link",
sanitize("edit the page, raise a #{link_to "support ticket", "https://support.publishing.service.gov.uk/technical_fault_report/new", class: "govuk-link govuk-link--no-visited-state"}"),
],
} %>
</div>
</div>