Mercurial > kallithea
changeset 4735:a12aef38b8b0
error: remove allmost unused code for redirect on error page
It is much better to just stop and show the error message.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 06 Jan 2015 00:54:36 +0100 |
parents | 1c27ffa45832 |
children | 72bf89475004 |
files | kallithea/controllers/error.py kallithea/templates/errors/error_document.html |
diffstat | 2 files changed, 0 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/controllers/error.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/controllers/error.py Tue Jan 06 00:54:36 2015 +0100 @@ -67,11 +67,6 @@ c.error_message = cgi.escape(request.GET.get('code', str(resp.status))) c.error_explanation = self.get_error_explanation(resp.status_int) - # redirect to when error with given seconds - c.redirect_time = 0 - c.redirect_module = _('Home page') - c.url_redirect = "/" - return render('/errors/error_document.html') def img(self, id):
--- a/kallithea/templates/errors/error_document.html Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/templates/errors/error_document.html Tue Jan 06 00:54:36 2015 +0100 @@ -8,9 +8,6 @@ <link rel="icon" href="${h.url('/images/favicon.ico')}" type="image/png" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> - %if c.redirect_time: - <meta http-equiv="refresh" content="${c.redirect_time}; url=${c.url_redirect}"/> - %endif <!-- stylesheets --> <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen"/> @@ -43,13 +40,8 @@ <p>${c.error_explanation}</p> - %if c.redirect_time: - <p>${_('You will be redirected to %s in %s seconds') % (c.redirect_module,c.redirect_time)}</p> - %endif - </div> </div> - <!-- end login --> </div> </body>