# HG changeset patch # User Mads Kiilerich # Date 1420502076 -3600 # Node ID a12aef38b8b07334adfd7d33962b6511e49c3bd9 # Parent 1c27ffa45832b6eb3535c4f0cfec9d53bbd3602e error: remove allmost unused code for redirect on error page It is much better to just stop and show the error message. diff -r 1c27ffa45832 -r a12aef38b8b0 kallithea/controllers/error.py --- 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): diff -r 1c27ffa45832 -r a12aef38b8b0 kallithea/templates/errors/error_document.html --- 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 @@ - %if c.redirect_time: - - %endif @@ -43,13 +40,8 @@

${c.error_explanation}

- %if c.redirect_time: -

${_('You will be redirected to %s in %s seconds') % (c.redirect_module,c.redirect_time)}

- %endif - -