This repository has been archived by the owner on Nov 3, 2021. 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.
Added "pretty" CSRF error page. Bug 616323.
- Loading branch information
Fred Wenzel
committed
Jan 31, 2011
1 parent
731631f
commit d9ad078
Showing
4 changed files
with
48 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<div class="block prose"> | ||
<h2>{% block page_title %}{{ _('CSRF Protection Error') }}{% endblock %}</h2> | ||
|
||
<p> | ||
{% trans %} | ||
There was an error verifying your CSRF token. Your request could not be | ||
processed. We apologize for the inconvenience! | ||
{% endtrans %} | ||
</p> | ||
|
||
<p> | ||
{% trans cookies_url='http://support.mozilla.com/kb/Cookies' %} | ||
The most likely cause of this error is that your browser is set up | ||
<strong>not to accept cookies</strong> from us. Please follow | ||
<a href="{{ cookies_url }}">these instructions</a> to enable cookies in | ||
Firefox, then try again. | ||
{% endtrans %} | ||
</p> | ||
|
||
<p> | ||
{% trans bug_url='https://bugzilla.mozilla.org/enter_bug.cgi?product=Webtools&component=Input' %} | ||
If the problem persists, please <a href="{{ bug_url }}">file a bug.</a> Thanks! | ||
{% endtrans %} | ||
</p> | ||
</div> | ||
{% 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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
<form class="channels go" method="get" action="{{ url('dashboard') }}"> | ||
<span class="selectbox"> | ||
<span>{{ CHANNELS[CHANNEL].pretty }}</span> | ||
<select id="channel" name="channel" dir="ltr"> | ||
{% for ch in CHANNEL_USAGE -%} | ||
<option value="{{ ch.short }}" {{ ch.short|ifeq(CHANNEL, "selected") }}> | ||
{{ ch.pretty }} | ||
</option> | ||
{%- endfor %} | ||
</select> | ||
</span> | ||
<button type="submit">{{ _('Go') }}</button> | ||
</form> | ||
{% if CHANNEL %} | ||
<form class="channels go" method="get" action="{{ url('dashboard') }}"> | ||
<span class="selectbox"> | ||
<span>{{ CHANNELS[CHANNEL].pretty }}</span> | ||
<select id="channel" name="channel" dir="ltr"> | ||
{% for ch in CHANNEL_USAGE -%} | ||
<option value="{{ ch.short }}" {{ ch.short|ifeq(CHANNEL, "selected") }}> | ||
{{ ch.pretty }} | ||
</option> | ||
{%- endfor %} | ||
</select> | ||
</span> | ||
<button type="submit">{{ _('Go') }}</button> | ||
</form> | ||
{% endif %} |
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