gitlab-org--gitlab-foss/app/views/errors/access_denied.html.haml
Bob Van Landuyt 7fe92d9981 Render access denied without message
The `errors/access_denied` page should not fail to render when no
message is provided.

When accessing something as a sessionless user, we should also display
the terms message if possible.
2018-06-13 17:03:48 +02:00

16 lines
536 B
Text

- message = local_assigns.fetch(:message, nil)
- content_for(:title, 'Access Denied')
= image_tag('illustrations/error-403.svg', alt: '403', lazy: false)
.container
%h3
= s_("403|You don't have the permission to access this page.")
- if message
%p
= message
%p
= s_('403|Please contact your GitLab administrator to get the permission.')
.action-container.js-go-back{ style: 'display: none' }
%a{ href: 'javascript:history.back()', class: 'btn btn-success' }
= s_('Go Back')
= render "errors/footer"