Skip to content

Commit

Permalink
feat(pages): add dedicated error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
error418 committed Jul 10, 2020
1 parent cd67ae7 commit b65f675
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
11 changes: 11 additions & 0 deletions views/404.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends base

block content
div(class="row")
div(class="col-md-12")

div
h3 HTTP 404
span.pl-2.subtitle.text-muted Resource not found

p We could not find the resource you requested :(
14 changes: 0 additions & 14 deletions views/error.pug
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,6 @@ extends base
block content
div(class="row")
div(class="col-md-12")
script(src=`${ basePath }/modules/d3/d3.min.js`)
script(src=`${ basePath }/static/js/charts.js`)

if features.dashboard && isBuildHistoryEnabled && buildStats
div.row.no-gutters.mb-3
div.card-group
div.card
div.card-body
div.chart-buildstats
script.
$(document).ready(() => {
var data = !{JSON.stringify(buildStats)};
buildStatsChart(".chart-buildstats", data, 200);
});

div
h3 Sorry, something went wrong serving your request
Expand Down

0 comments on commit b65f675

Please sign in to comment.