Browse Source

fix: Path with slash display issue in Not Found error page

pull/166/head
NGPixel 7 years ago
committed by Nicolas Giard
parent
commit
1cb1c5acf9
3 changed files with 4 additions and 4 deletions
  1. 2
      server/views/error-forbidden.pug
  2. 4
      server/views/error-notexist.pug
  3. 2
      server/views/error.pug

2
server/views/error-forbidden.pug

@ -18,7 +18,7 @@ html(data-logic='error')
link(rel='manifest', href='/manifest.json')
// JS / CSS
//- script(type='text/javascript', src='/js/libs.min.js')
script(type='text/javascript', src='/js/vendor.min.js')
script(type='text/javascript', src='/js/app.min.js')
body(class='is-forbidden')

4
server/views/error-notexist.pug

@ -18,13 +18,13 @@ html(data-logic='error')
link(rel='manifest', href='/manifest.json')
// JS / CSS
//- script(type='text/javascript', src='/js/libs.min.js')
script(type='text/javascript', src='/js/vendor.min.js')
script(type='text/javascript', src='/js/app.min.js')
body(class='is-notexist')
.container
a(href='/'): img(src='/images/logo.png')
h1= message
h1 !{message}
h2= t('errors:notexistdetail')
a.button.is-amber.is-inverted.is-featured(href='/create/' + newpath)= t('errors:actions.create')
a.button.is-amber.is-inverted(href='/')= t('errors:actions.gohome')

2
server/views/error.pug

@ -18,7 +18,7 @@ html(data-logic='error')
link(rel='manifest', href='/manifest.json')
// JS / CSS
//- script(type='text/javascript', src='/js/libs.min.js')
script(type='text/javascript', src='/js/vendor.min.js')
script(type='text/javascript', src='/js/app.min.js')
body(class='is-error')

Loading…
Cancel
Save