Pour des pages d'erreur squid plus élégantes.
* nettoyrage du css (un peu) * ajout du logo * un peu de mise en page darcs-hash:20081109211826-69ccb-81d5eae4d74b969d7adee51d5de0309798019487.gz
This commit is contained in:
parent
3b95fa9512
commit
6b3f3a1c17
3 changed files with 305 additions and 22 deletions
|
@ -23,27 +23,7 @@ url_base='VieCrans/PagesDeDeconnexion/'
|
|||
outputdir='/usr/scripts/squid/errors'
|
||||
outputdir_rouge='/var/www/rouge/squid'
|
||||
|
||||
page_template = u"""<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=%(charset)s">
|
||||
<title>%(pagename)s</title>
|
||||
<style type="text/css">
|
||||
%(common_css)s
|
||||
%(blackliste_css)s
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>%(pagenamewithlinks)s</h1>
|
||||
|
||||
%(pagehtml)s
|
||||
|
||||
<p class="creation">
|
||||
Cette page a été extraite du wiki le %(timestamp)s. Vous pouvez l'<a href="%(wikilink)s?action=edit">éditer</a> ou <a href="%(wikilink)s">voir</a> la page originale.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
"""
|
||||
from templates import page_template
|
||||
|
||||
import os, time, StringIO, codecs, shutil, re
|
||||
from MoinMoin import config, wikiutil, Page
|
||||
|
@ -58,7 +38,7 @@ for r in [outputdir, outputdir_rouge]:
|
|||
|
||||
# Recuperation des css
|
||||
common_css = file('/usr/scripts/wiki/static/blackliste/css/common.css').read()
|
||||
blackliste_css = file('/usr/scripts/wiki/static/blackliste/css/blackliste.css').read()
|
||||
blackliste_css = file('/usr/scripts/wiki/static/blackliste/css/blackliste-clean.css').read()
|
||||
|
||||
class MoinDump(_util.Script):
|
||||
def __init__(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue