2012-02-22 05:14:54 +00:00
|
|
|
!!! 5
|
2016-12-26 10:47:16 +00:00
|
|
|
%html{ lang: "en" }
|
2016-11-29 18:44:07 +00:00
|
|
|
%head
|
2016-12-26 10:47:16 +00:00
|
|
|
%meta{ :content => "width=device-width, initial-scale=1, maximum-scale=1", :name => "viewport" }
|
2016-11-29 18:44:07 +00:00
|
|
|
%title= yield(:title)
|
2018-05-31 21:28:19 +00:00
|
|
|
%style
|
|
|
|
= Rails.application.assets_manifest.find_sources('errors.css').first.to_s.html_safe
|
|
|
|
%body
|
|
|
|
.page-container
|
|
|
|
= yield
|
2020-11-26 18:09:18 +00:00
|
|
|
= javascript_tag do
|
2019-08-06 06:14:32 +00:00
|
|
|
:plain
|
|
|
|
(function(){
|
|
|
|
var goBackElement = document.querySelector('.js-go-back');
|
2016-11-29 18:44:07 +00:00
|
|
|
|
2019-08-06 06:14:32 +00:00
|
|
|
if (goBackElement && history.length > 1) {
|
2019-08-15 07:29:29 +00:00
|
|
|
goBackElement.removeAttribute('hidden');
|
|
|
|
|
|
|
|
goBackElement.querySelector('button').addEventListener('click', function() {
|
|
|
|
history.back();
|
|
|
|
});
|
2019-08-06 06:14:32 +00:00
|
|
|
}
|
|
|
|
}());
|