This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
appify 403/404/500 templates (bug 704560)
- Loading branch information
Showing
7 changed files
with
137 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% set addon_type = amo.ADDON_WEBAPP %} | ||
{% extends 'base_modal.html' if request.is_ajax() else 'impala/base_side_categories.html' %} | ||
|
||
{% block title %}{{ _('Oops') }}{% endblock %} | ||
|
||
{# TODO(apps): Finalize copy. #} | ||
|
||
{% block primary %} | ||
<section class="primary"> | ||
<header> | ||
<h1>Oops! Not allowed.</h1> | ||
</header> | ||
<div class="island hero prose"> | ||
<p>You tried to do something that you weren't allowed to.</p> | ||
{% if csrf %} | ||
{% trans %} | ||
<p>Try going back to the previous page, refreshing | ||
and then trying again.</p> | ||
{% endtrans %} | ||
{% endif %} | ||
</div> | ||
</section> | ||
{% endblock %} |
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,43 @@ | ||
{% set addon_type = amo.ADDON_WEBAPP %} | ||
{% extends 'impala/base_side_categories.html' %} | ||
|
||
{% block title %}{{ _('Not Found') }}{% endblock %} | ||
|
||
{% set search = url('apps.search') %} | ||
{% set home = url('apps.home') %} | ||
|
||
{# TODO(apps): Finalize copy. #} | ||
|
||
{% block primary %} | ||
<section class="primary"> | ||
<header> | ||
<h1>We're sorry, but we can't find what you're looking for.</h1> | ||
</header> | ||
<div class="island prose"> | ||
<p> | ||
The page or file you requested wasn't found on our site. It's possible that | ||
you clicked a link that's out of date, or typed in the address incorrectly. | ||
</p> | ||
<ul> | ||
<li>If you typed in the address, please double check the spelling.</li> | ||
<li> | ||
If you followed a link from somewhere, please let us know at | ||
<a href="mailto:webmaster@mozilla.com">webmaster@mozilla.com</a>. | ||
Tell us where you came from and what you were looking for, and we'll do | ||
our best to fix it. | ||
</li> | ||
</ul> | ||
<p>Or you can just jump over to some of the popular pages on our website.</p> | ||
<ul> | ||
<li> | ||
Do you want to <a href="{{ search }}">search for apps</a>? You may go to the | ||
<a href="{{ search }}">search page</a> or just use the search field above. | ||
</li> | ||
<li> | ||
If you prefer to start over, just go to the | ||
<a href="{{ home }}">apps front page</a>. | ||
</li> | ||
</ul> | ||
</div> | ||
</section> | ||
{% endblock %} |
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,23 @@ | ||
{% set addon_type = amo.ADDON_WEBAPP %} | ||
{% extends 'impala/base_side_categories.html' %} | ||
|
||
{% block title %}{{ _('Oops') }}{% endblock %} | ||
|
||
{% set home = url('apps.home') %} | ||
|
||
{# TODO(apps): Finalize copy. #} | ||
|
||
{% block primary %} | ||
<section class="primary"> | ||
<header> | ||
<h1>Oops! We had an error.</h1> | ||
</header> | ||
<div class="island hero prose"> | ||
<p>We'll get to fixing that soon.</p> | ||
<p> | ||
You can try refreshing the page, or head back to the | ||
<a href="{{ home }}">Apps homepage</a>. | ||
</p> | ||
</div> | ||
</section> | ||
{% endblock %} |
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 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