-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(errors): back button works on 403
This commit refactors the error pages to use the same folders and test structure. It moves some of the CSS to a central place and makes sure that authentication works appropriately. The most important change is that ALL states are sent to the client along with their authorization status. This is so that the app can tell the difference between a 404 and a 403 effectively. Closes #846.
- Loading branch information
Showing
12 changed files
with
210 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<div class="flex-content"> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-4 col-md-offset-4"> | ||
|
||
<div class="panel panel-danger content-error" data-error="403"> | ||
<div class="panel-heading clearfix text-center text-danger"> | ||
<strong> | ||
<i class="fa fa-danger"></i> | ||
{{ "FORM.LABELS.ERROR_403" | translate }} | ||
</strong> | ||
</div> | ||
|
||
<div class="panel-body text-center"> | ||
<strong> {{"FORM.WARNINGS.NOT_AUTHORISED" | translate}}</strong> | ||
<div style="background-image:radial-gradient(#D487A1, #FFFFFF); font-size:500%; color:white; text-shadow: 0px 0px 9px #777;"> | ||
403 | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div class="flex-content"> | ||
<div class="container-fluid" style="height: 100%;"> | ||
<div class="row"> | ||
<div class="col-md-4 col-md-offset-4"> | ||
|
||
<div class="panel panel-default content-error" data-error="404"> | ||
<div class="panel-heading clearfix text-center"> | ||
<strong> | ||
<i class="fa fa-danger"></i> | ||
<span class="text-danger">{{ "FORM.LABELS.ERROR_404" | translate }} </span> | ||
</strong> | ||
</div> | ||
|
||
<div class="panel-body text-center"> | ||
<strong> {{"FORM.WARNINGS.PAGE_NOT_FOUND" | translate}}</strong> | ||
<div style="background-image:radial-gradient(#CBCBCB, #FFFFFF); font-size:500%; color:white; text-shadow: 0px 0px 9px #777;"> 404 </div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.