Mercurial > dive4elements > website
comparison newsfeed.py @ 141:e209a6446e88
One break less inside new items.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 03 Apr 2014 16:43:26 +0200 |
parents | 6fdb28c3872c |
children | 651669645c42 |
comparison
equal
deleted
inserted
replaced
140:6fdb28c3872c | 141:e209a6446e88 |
---|---|
55 oa(content[(max_length-ocacity50):(max_length)]) | 55 oa(content[(max_length-ocacity50):(max_length)]) |
56 oa('...</span></a>') | 56 oa('...</span></a>') |
57 else: | 57 else: |
58 oa(content) | 58 oa(content) |
59 | 59 |
60 oa('<br>') | |
61 actor = item["actor"] | 60 actor = item["actor"] |
62 oa('<div style="font-size:smaller">') | 61 oa('<div style="font-size:smaller">') |
63 oa('<a href="%s">%s</a>' % (actor["url"], actor["displayName"]+'</a>')) | 62 oa('<a href="%s">%s</a>' % (actor["url"], actor["displayName"]+'</a>')) |
64 if verb == "share": | 63 if verb == "share": |
65 oa(' via <a href="%s">%s</a><br>' % (item["object"]["url"], item["object"]["author"]["displayName"])) | 64 oa(' via <a href="%s">%s</a><br>' % (item["object"]["url"], item["object"]["author"]["displayName"])) |