license/copyright/footer
authorTero Marttila <terom@fixme.fi>
Tue, 05 May 2009 22:07:51 +0300
changeset 18 17e1136cc257
parent 17 301725d72e29
child 19 0187eddad3eb
license/copyright/footer
index.py
--- a/index.py	Tue May 05 21:52:30 2009 +0300
+++ b/index.py	Tue May 05 22:07:51 2009 +0300
@@ -1,4 +1,20 @@
 #!/usr/bin/python2.5
+# Copyright 2009 Tero Marttila
+#
+#   This program is free software: you can redistribute it and/or modify
+#   it under the terms of the GNU General Public License as published by
+#   the Free Software Foundation, either version 3 of the License, or
+#   (at your option) any later version.
+#
+#   This program is distributed in the hope that it will be useful,
+#   but WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#   GNU General Public License for more details.
+#
+#   You should have received a copy of the GNU General Public License
+#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+
 import werkzeug
 from werkzeug.exceptions import HTTPException
 
@@ -81,6 +97,9 @@
 
 TILE_SIZE = (100, 100)
 
+SITE_URL = "http://qmsk.net/stuff/aaltologo/"
+SOURCE_URL = "http://hg.qmsk.net/aaltologotin"
+
 # enable debugging
 DEBUG = True
 
@@ -549,6 +568,12 @@
 div.param {
     padding: 3px;
 }
+
+div#footer {
+    text-align: center;
+    font-size: x-small;
+    font-style: italic;
+}
         </style>
     </head>
     <body>
@@ -567,6 +592,9 @@
                 </fieldset>
             </form>
         </div>
+        <div id='footer'>
+            <a href="%(site_url)s">Aaltologotin</a> &copy; 2009 Tero Marttila :: GPL <a href="%(source_url)s">Source code</a>
+        </div>
     </body>
 </html>""" % dict(
         img_url     = img_url,
@@ -574,6 +602,8 @@
         form_fields = "\n".join(
             "\t%s" % opt.build_form(opts) for opt in options.options
         ),
+        site_url    = SITE_URL,
+        source_url  = SOURCE_URL,
     ), mimetype='text/html')
 
 def handle_request (req) :