summaryrefslogtreecommitdiff
path: root/app/views/layouts/errors.html.haml
blob: 74484005b489dcd2993c3330e59329019b7e4914 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
!!! 5
%html{ lang: "en" }
  %head
    %meta{ :content => "width=device-width, initial-scale=1, maximum-scale=1", :name => "viewport" }
    %title= yield(:title)
    %style
      = Rails.application.assets_manifest.find_sources('errors.css').first.to_s.html_safe
  %body
    .page-container
      = yield
    = javascript_tag nonce: true do
      :plain
        (function(){
          var goBackElement = document.querySelector('.js-go-back');

          if (goBackElement && history.length > 1) {
            goBackElement.style.display = 'block';
          }
        }());