Skip to content

Commit

Permalink
modify template 400,403,404,500 etc
Browse files Browse the repository at this point in the history
  • Loading branch information
taobataoma committed May 13, 2017
1 parent a9a5fde commit 2a66366
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 35 deletions.
22 changes: 13 additions & 9 deletions modules/core/client/views/400.client.view.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<div class="page-header">
<h1>Bad Request</h1>
</div>
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">Error:</span>
<span ng-if="vm.errorMessage" ng-bind="vm.errorMessage"></span>
<span ng-if="!vm.errorMessage">You made a bad request</span>
</div>
<section>
<div class="container">
<div class="page-header">
<h1>Bad Request</h1>
</div>
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">Error:</span>
<span ng-if="vm.errorMessage" ng-bind="vm.errorMessage"></span>
<span ng-if="!vm.errorMessage">You made a bad request</span>
</div>
</div>
</section>
20 changes: 12 additions & 8 deletions modules/core/client/views/403.client.view.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<div class="page-header">
<h1>Forbidden</h1>
</div>
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">Error:</span>
You are not authorized to access this resource
</div>
<section>
<div class="container">
<div class="page-header">
<h1>Forbidden</h1>
</div>
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">Error:</span>
You are not authorized to access this resource
</div>
</div>
</section>
20 changes: 12 additions & 8 deletions modules/core/client/views/404.client.view.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<div class="page-header">
<h1>Page Not Found</h1>
</div>
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span ng-if="vm.errorMessage" ng-bind="vm.errorMessage"></span>
<span ng-if="!vm.errorMessage">Page Not Found</span>
</div>
<section>
<div class="container">
<div class="page-header">
<h1>Page Not Found</h1>
</div>
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span ng-if="vm.errorMessage" ng-bind="vm.errorMessage"></span>
<span ng-if="!vm.errorMessage">Page Not Found</span>
</div>
</div>
</section>
18 changes: 12 additions & 6 deletions modules/core/server/views/404.server.view.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{{!< layout}}

{{#contentFor 'content'}}
<h1>Page Not Found</h1>
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">Error:</span>
{{url}} is not a valid path.
</div>
<section ui-view>
<div class="container">
<div class="page-header">
<h1>Page Not Found</h1>
</div>
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">Error:</span>
{{url}} is not a valid path.
</div>
</div>
</section>
{{/contentFor}}
14 changes: 10 additions & 4 deletions modules/core/server/views/500.server.view.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{{!< layout}}

{{#contentFor 'content'}}
<h1>Server Error</h1>
<pre>
{{error}}
</pre>
<section>
<div class="container">
<div class="page-header">
<h1>Server Error</h1>
</div>
<pre>
{{error}}
</pre>
</div>
</section>
{{/contentFor}}

0 comments on commit 2a66366

Please sign in to comment.