Skip to content

Commit

Permalink
增加404页面
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTong committed Feb 25, 2016
1 parent 88b117e commit a836e86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,5 @@ app.use (err, req, res, next) ->
res.render 'error',
message: err.message,
error: {}
notFound:true

module.exports = app
2 changes: 2 additions & 0 deletions public/resources/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ body {
}

.not-found{
padding-top: 2em;
padding-bottom: 2em;
iframe{
margin-left:auto;
margin-right:auto;
Expand Down
3 changes: 1 addition & 2 deletions views/error.jade
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
extends layout

block content
h2= error.status
if notFound
if error.status == 404
.not-found
<iframe scrolling='no' frameborder='0' src='http://yibo.iyiyun.com/Home/Distribute/ad404/key/778322' width='654' height='470' style='display:block;'></iframe>

0 comments on commit a836e86

Please sign in to comment.