[PATCH] Another div around news items
Wald Commits
scm-commit at wald.intevation.org
Thu Apr 3 16:38:23 CEST 2014
# HG changeset patch
# User Sascha L. Teichmann <teichmann at intevation.de>
# Date 1396535899 -7200
# Node ID e17f0122ca94f80fca1176881804fcd8673aaedd
# Parent c791f4e9be390c77df9ec944305079dd2cf30ff3
Another div around news items.
diff -r c791f4e9be39 -r e17f0122ca94 newsfeed.py
--- 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>")
More information about the Dive4Elements-commits
mailing list