debian-mirror-gitlab/app/views/layouts/errors.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1,003 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
!!! 5
2017-08-17 22:00:37 +05:30
%html{ lang: "en" }
%head
%meta{ :content => "width=device-width, initial-scale=1, maximum-scale=1", :name => "viewport" }
%title= yield(:title)
2018-11-08 19:23:39 +05:30
%style
= Rails.application.assets_manifest.find_sources('errors.css').first.to_s.html_safe
%body
.page-container
= yield
2021-02-22 17:27:13 +05:30
= javascript_tag do
2019-10-12 21:52:04 +05:30
:plain
(function(){
var goBackElement = document.querySelector('.js-go-back');
2017-08-17 22:00:37 +05:30
2019-10-12 21:52:04 +05:30
if (goBackElement && history.length > 1) {
2019-12-04 20:38:33 +05:30
goBackElement.removeAttribute('hidden');
goBackElement.querySelector('button').addEventListener('click', function() {
history.back();
});
2019-10-12 21:52:04 +05:30
}
2021-04-29 21:17:54 +05:30
// We do not have rails_ujs here, so we're manually making a link trigger a form submit.
2022-06-21 17:19:12 +05:30
document.querySelector('.js-sign-out-link')?.addEventListener('click', (e) => {
2021-04-29 21:17:54 +05:30
e.preventDefault();
2022-06-21 17:19:12 +05:30
document.querySelector('.js-sign-out-form')?.submit();
2021-04-29 21:17:54 +05:30
});
2019-10-12 21:52:04 +05:30
}());