changeset 15:0456cf214bda

Added credits menu in the footer
author Radomir Dopieralski <devel@sheep.art.pl>
date Thu, 05 Jun 2008 12:05:22 +0200
parents dad63ce7aea9
children 0d2ca03c94d1
files mfact.py mfact/css/screen.css
diffstat 2 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mfact.py	Thu Jun 05 11:55:11 2008 +0200
+++ b/mfact.py	Thu Jun 05 12:05:22 2008 +0200
@@ -136,6 +136,7 @@
             self.emit_custom_html(self.cfg.page_footer1),
             # Footer
             u'<div id="footer">',
+            self.credits(d),
             self.editbar(d),
             u'</div>',
             # Post footer custom html
@@ -250,6 +251,14 @@
         html = u"<li>%s</li>" % link
         return html
 
+    def credits(self, d):
+        html = u"""<ul class="credits">
+    <li><a href="/Downloads">open source software</a></li>
+    <li><a href="http://www.measurement-factory.com/">&copy; The Measurement
+    Factory</a></li>
+</ul>"""
+        return html
+
 def execute(request):
     """
     Generate and return a theme object
--- a/mfact/css/screen.css	Thu Jun 05 11:55:11 2008 +0200
+++ b/mfact/css/screen.css	Thu Jun 05 12:05:22 2008 +0200
@@ -80,14 +80,14 @@
     text-decoration: underline;
 }
 
-ul.editbar {
+ul.credits, ul.editbar {
     margin: 0;
     padding: 0;
 }
 
-ul.editbar li {
+ul.credits li, ul.editbar li {
     display: inline;
-    margin: 0 0.25em;
+    margin: 0 0.5em;
     padding: 0;
 }