Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/server.py
diff options
context:
space:
mode:
authorMartin Langhoff <martin@laptop.org>2010-10-22 20:54:04 (GMT)
committer Martin Langhoff <martin@laptop.org>2010-10-22 20:54:04 (GMT)
commit10ba7f9080390f6b8fed8dae7ca3a10799cf55ea (patch)
treeaf6d15e39f7a00214cf4e983cbe6576390ba4076 /server.py
parentefbfcad87100f392ba34d41f8027b79286c6d1ee (diff)
Move header and inappropriate / error links to server.py
Diffstat (limited to 'server.py')
-rwxr-xr-xserver.py24
1 files changed, 23 insertions, 1 deletions
diff --git a/server.py b/server.py
index 51e7164..401a487 100755
--- a/server.py
+++ b/server.py
@@ -462,7 +462,29 @@ class WikiRequestHandler(SimpleHTTPRequestHandler):
htmlout.write("</head>")
htmlout.write("<body>")
-
+
+ htmlout.write("<h1>")
+ htmlout.write(title)
+ htmlout.write(' <font size="1">&middot; <a class="offsite" ')
+ htmlout.write('href="http://es.wikipedia.org/wiki/')
+ htmlout.write(title)
+ htmlout.write('">De Wikipedia, la enciclopedia libre</a> ')
+
+ # Report rendering problem.
+ htmlout.write('&middot; <a class="offsite" ')
+ htmlout.write('href="http://pullcord.laptop.org:8000/render?q=')
+ htmlout.write(title)
+ htmlout.write('">Haz clic aquí si esta página contiene errores de presentación</a> ')
+
+ # Report inappropriate content.
+ htmlout.write('&middot; <a class="offsite" ')
+ htmlout.write('href="http://pullcord.laptop.org:8000/report?q=')
+ htmlout.write(title)
+ htmlout.write('">Esta página contiene material inapropiado</a>')
+
+ htmlout.write("</font>")
+ htmlout.write('</h1>')
+
self.write_wiki_html(htmlout, title, article_text)
htmlout.write('<center>Contenido disponible bajo los términos de la <a href="/static/es-gfdl.html">Licencia de documentación libre de GNU</a>. <br/> Wikipedia es una marca registrada de la organización sin ánimo de lucro Wikimedia Foundation, Inc.<br/><a href="/static/acerca.html">Acerca de Wikipedia</a> </center>')