summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 445a260)
raw | patch | inline | side by side (parent: 445a260)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 14 Jan 2002 23:31:21 +0000 (23:31 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 14 Jan 2002 23:31:21 +0000 (23:31 +0000) |
that's what link() is for!
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@547 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@547 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/htmltemplate.py | patch | blob | history |
index 3b98e924b0ef003c13b9c269add7051cd56ac10f..ae83b6bf77da2478788eb698a25727baec14bc75 100644 (file)
--- a/roundup/htmltemplate.py
+++ b/roundup/htmltemplate.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: htmltemplate.py,v 1.56 2002-01-14 07:04:36 richard Exp $
+# $Id: htmltemplate.py,v 1.57 2002-01-14 23:31:21 richard Exp $
__doc__ = """
Template engine.
linkcl = self.db.classes[propclass.classname]
k = linkcl.labelprop()
if value:
- value = '<a href="%s%s">%s</a>'%(propclass.classname, value,
- linkcl.get(value, k))
+ value = linkcl.get(value, k)
else:
value = _('[unselected]')
elif isinstance(propclass, hyperdb.Multilink):
linkcl = self.db.classes[propclass.classname]
k = linkcl.labelprop()
- value = ', '.join(['<a href="%s%s">%s</a>'%(propclass.classname,
- i, linkcl.get(i, k)) for i in value])
+ value = ', '.join(value)
else:
s = _('Plain: bad propclass "%(propclass)s"')%locals()
if escape:
#
# $Log: not supported by cvs2svn $
+# Revision 1.56 2002/01/14 07:04:36 richard
+# . plain rendering of links in the htmltemplate now generate a hyperlink to
+# the linked node's page.
+# ... this allows a display very similar to bugzilla's where you can actually
+# find out information about the linked node.
+#
# Revision 1.55 2002/01/14 06:45:03 richard
# . #502953 ] nosy-like treatment of other multilinks
# ... had to revert most of the previous change to the multilink field