diff newsfeed.py @ 139:e17f0122ca94

Another div around news items.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 03 Apr 2014 16:38:19 +0200
parents c791f4e9be39
children 6fdb28c3872c
line wrap: on
line diff
--- a/newsfeed.py	Thu Apr 03 16:30:09 2014 +0200
+++ b/newsfeed.py	Thu Apr 03 16:38:19 2014 +0200
@@ -43,6 +43,7 @@
     postcount += 1
     content = content.encode('utf8')
     oa("<li>")
+    oa('<div style="margin-bottom:2em">')
 
     if len(content) >= max_length:
         oa(content[:(max_length-opacity75)])
@@ -66,6 +67,7 @@
     date = time.strptime(item["updated"],"%Y-%m-%dT%H:%M:%SZ")
     oa(time.strftime(" %d.%m.%Y um %H:%M:%S", date))
     oa('</div>')
+    oa('</div>')
     oa("</li>")
 
 oa("</ul>")
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)