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

20 lines
571 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
-# haml-lint:disable InlineJavaScript
:javascript
(function(){
var goBackElement = document.querySelector('.js-go-back');
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
if (goBackElement && history.length > 1) {
goBackElement.style.display = 'block';
}
}());