Changeset - 5256b255269a
[Not reviewed]
beta
1 2 0
Marcin Kuzminski - 15 years ago 2011-01-31 23:28:21
marcin@python-works.com
removed obsolete css from 404 page, and implemented rhodecode title app in the error page
3 files changed with 3 insertions and 36 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/error.py
Show inline comments
 
@@ -29,7 +29,7 @@ import cgi
 
import logging
 
import paste.fileapp
 

	
 
from pylons import tmpl_context as c, request
 
from pylons import tmpl_context as c, request, config
 
from pylons.i18n.translation import _
 
from pylons.middleware import  media_path
 

	
 
@@ -52,6 +52,7 @@ class ErrorController(BaseController):
 

	
 
    def document(self):
 
        resp = request.environ.get('pylons.original_response')
 
        c.rhodecode_name = config.get('rhodecode_title')
 

	
 
        log.debug('### %s ###', resp.status)
 

	
rhodecode/templates/errors/error_404.html
Show inline comments
 
deleted file
rhodecode/templates/errors/error_document.html
Show inline comments
 
@@ -11,9 +11,7 @@
 
        <meta name="robots" content="index, nofollow"/>
 
            
 
        <!-- stylesheets -->
 
        <link rel="stylesheet" type="text/css" href="/css/reset.css" />
 
        <link rel="stylesheet" type="text/css" href="/css/style.css" media="screen" />
 
        <link id="color" rel="stylesheet" type="text/css" href="/css/colors/blue.css" />
 
	    <style type="text/css">
 
	     #main_div{
 
	       border: 0px solid #000;
 
@@ -37,7 +35,7 @@
 
        <div id="login">
 
            <div class="table">            
 
				<div id="main_div">
 
				    <div style="font-size:2.0em;margin: 10px">RhodeCode</div>
 
				    <div style="font-size:2.0em;margin: 10px">${c.rhodecode_name}</div>
 
					<h1 class="error_message">${c.error_message}</h1>
 
					
 
					<p>${c.error_explanation}</p>
0 comments (0 inline, 0 general)