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

24 lines
712 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
2019-10-12 21:52:04 +05:30
= javascript_tag nonce: true do
: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
}
}());