gitlab-org--gitlab-foss/app/views/layouts/errors.html.haml

20 lines
571 B
Text
Raw Normal View History

!!! 5
%html{ lang: "en" }
2016-11-29 13:44:07 -05:00
%head
%meta{ :content => "width=device-width, initial-scale=1, maximum-scale=1", :name => "viewport" }
2016-11-29 13:44:07 -05:00
%title= yield(:title)
2018-05-31 17:28:19 -04:00
%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');
2016-11-29 13:44:07 -05:00
2018-05-31 17:28:19 -04:00
if (goBackElement && history.length > 1) {
goBackElement.style.display = 'block';
}
}());