changeset 556:50359de2800b

Fixed up the HTML display of history so valid links are actually displayed. Oh for some unit tests! :(
author Richard Jones <richard@users.sourceforge.net>
date Mon, 21 Jan 2002 02:59:10 +0000
parents 5fd94347c6f2
children dfac856502d1
files roundup/htmltemplate.py
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/htmltemplate.py	Sat Jan 19 13:16:04 2002 +0000
+++ b/roundup/htmltemplate.py	Mon Jan 21 02:59:10 2002 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: htmltemplate.py,v 1.62 2002-01-18 08:36:12 grubert Exp $
+# $Id: htmltemplate.py,v 1.63 2002-01-21 02:59:10 richard Exp $
 
 __doc__ = """
 Template engine.
@@ -535,9 +535,11 @@
                                         linked node no longer
                                         exists</strike>''')
                                     cell.append(' <strike>%s</strike>,\n'%label)
-                            else:
-                                cell.append('  <a href="%s%s">%s</a>,\n'%(
-                                    classname, linkid, label))
+                                    # "flag" this is done .... euwww
+                                    label = None
+                            if label is not None:
+                                cell.append('%s: <a href="%s%s">%s</a>\n'%(
+                                    classname, classname, args[k], label))
 
                         elif isinstance(prop, hyperdb.Date) and args[k]:
                             d = date.Date(args[k])
@@ -1000,6 +1002,9 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.62  2002/01/18 08:36:12  grubert
+#  . add nowrap to history table date cell i.e. <td nowrap ...
+#
 # Revision 1.61  2002/01/17 23:04:53  richard
 #  . much nicer history display (actualy real handling of property types etc)
 #

Roundup Issue Tracker: http://roundup-tracker.org/