Commit 2a42d537 authored by Sebastian Pipping's avatar Sebastian Pipping

Add link to Flattr

parent b3ac3274
......@@ -30,6 +30,11 @@
# -----------------------------------------------------------------------
# HISTORY
# -----------------------------------------------------------------------
# 2010-05-29 -- Sebastian Pipping <sebastian@pipping.org>
#
# * Added: Link to Flattr page
# * Added: Note for installation on Gentoo
#
# 2009-06-02 -- Sebastian Pipping <sebastian@pipping.org>
#
# * Fixed: Quick fix allowing attribute xml:id to appear anywhere
......@@ -145,8 +150,12 @@ import re
try:
from Ft.Lib import Uri
except ImportError:
print "ERROR: Package 'Ft.Lib' is missing. On Debian testing/unstable run:\n" \
"sudo apt-get install python-4suite-xml"
print """\
ERROR: Package 'Ft.Lib' is missing.
On Debian run: sudo apt-get install python-4suite-xml
On Gentoo run: emerge -av dev-python/4suite
"""
sys.exit(2)
print "Content-Type: text/html" # HTML is following
......@@ -371,13 +380,26 @@ else:
<table cellpadding="0" cellspacing="0" width="750" style="border:1px solid rgb(180,180,180); background-color:#FFF;">"""
print """
<tr>
<td align="right" style="padding-top: 5px; padding-right: 5px;">
<script type="text/javascript">
var flattr_url = 'http://validator.xspf.org/';
var flattr_btn='compact';
</script>
<script src="http://api.flattr.com/button/load.js" type="text/javascript"></script>
<noscript>
<a href="http://flattr.com/thing/8826/Online-XSPF-validator" target="_blank">
<img src="http://api.flattr.com/button/button-compact-static-100x17.png" title="Flattr this" border="0" /></a>
</noscript>
</td>
</tr>
<tr>"""
if input == "":
# Formular centered
print """
<td align="center" style="padding-top:60px; padding-bottom:60px">
<td align="center" style="padding-top:38px; padding-bottom:60px">
<form action="" accept-charset="UTF-8" enctype="multipart/form-data" method="post">
<!-- CONTENT -->
<table>"""
......@@ -385,7 +407,7 @@ if input == "":
else:
# Results full width
print """
<td style="padding-top:60px; padding-bottom:50px;">
<td style="padding-top:38px; padding-bottom:50px;">
<!-- CONTENT -->
<table style="width:100%;">"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment