forked from mozilla/kitsune
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a deprecated_redirect interstitial view.
sumo.views.deprecated_redirect shows a message informing the user that the URL has changed and they should update their bookmarks. It takes one required argument, `url` which is passed directly to `reverse()`. Any additional kwargs are also passed to `reverse()` as the `kwargs` argument.
- Loading branch information
James Socol
committed
Apr 15, 2011
1 parent
bed3d8d
commit 593127c
Showing
4 changed files
with
56 additions
and
2 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,19 @@ | ||
{# vim: set ts=2 et sts=2 sw=2: #} | ||
{% extends "base.html" %} | ||
{% set title = _('Redirecting') %} | ||
{% set refresh = (dest, 10) %} | ||
|
||
{% block content %} | ||
<article id="error-page" class="main"> | ||
<h1>{{ _('A URL has changed!') }}</h1> | ||
|
||
<p> | ||
{% trans %} | ||
It looks like you've bookmarked an old URL. The new URL for this page | ||
is below. You should update your bookmarks. We will forward you to the | ||
new URL in 10 seconds. | ||
{% endtrans %} | ||
</p> | ||
<p><strong>{{ proto }}{{ host }}{{ dest }}</strong></p> | ||
</article> | ||
{% 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