[gimp-web/testing] Add anchors with message ids
- From: Michael Schumacher <schumaml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] Add anchors with message ids
- Date: Tue, 28 Jul 2015 19:53:42 +0000 (UTC)
commit 987aa208152bab732d804e0aa27cf2d0b9a44520
Author: Michael Schumacher <schumaml gmx de>
Date: Tue Jul 28 21:53:02 2015 +0200
Add anchors with message ids
programmatic/admin/news/wgo_news.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/programmatic/admin/news/wgo_news.py b/programmatic/admin/news/wgo_news.py
index 837e39e..a8da36e 100755
--- a/programmatic/admin/news/wgo_news.py
+++ b/programmatic/admin/news/wgo_news.py
@@ -154,10 +154,13 @@ class news:
iso_date = time.strftime(config.datetime_format,
time.gmtime(calendar.timegm(email.Utils.parsedate(xhtml.unescape(self["date"])))))
- s = str(xhtml.comment("$Id$")) + str(xhtml.span(xhtml.quote(self["subject"]), {"class" : "newstitle"})
+ # message-id
+ s = xhtml.hyperlink('', {"id" : self["message-id"]})
+
+ title = str(xhtml.comment("$Id$")) + str(xhtml.span(xhtml.quote(self["subject"]), {"class" :
"newstitle"})
+ xhtml.span(xhtml.quote(iso_date), {"class" : "newsdate"}))
- s = xhtml.h1(s + " ", {"class" : "newsheading"})
+ s += xhtml.h1(title + " ", {"class" : "newsheading"})
img = ""
if icon_by_name(self["image"]) != "":
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]