Skip to content

Commit 7126dff

Browse files
author
Richard Jones
committed
Fixed up the HTML display of history so valid links are actually displayed.
Oh for some unit tests! :(
1 parent b12584f commit 7126dff

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

roundup/htmltemplate.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: htmltemplate.py,v 1.62 2002-01-18 08:36:12 grubert Exp $
18+
# $Id: htmltemplate.py,v 1.63 2002-01-21 02:59:10 richard Exp $
1919

2020
__doc__ = """
2121
Template engine.
@@ -535,9 +535,11 @@ def do_history(self, direction='descending'):
535535
linked node no longer
536536
exists</strike>''')
537537
cell.append(' <strike>%s</strike>,\n'%label)
538-
else:
539-
cell.append(' <a href="%s%s">%s</a>,\n'%(
540-
classname, linkid, label))
538+
# "flag" this is done .... euwww
539+
label = None
540+
if label is not None:
541+
cell.append('%s: <a href="%s%s">%s</a>\n'%(
542+
classname, classname, args[k], label))
541543

542544
elif isinstance(prop, hyperdb.Date) and args[k]:
543545
d = date.Date(args[k])
@@ -1000,6 +1002,9 @@ def render(self, form):
10001002

10011003
#
10021004
# $Log: not supported by cvs2svn $
1005+
# Revision 1.62 2002/01/18 08:36:12 grubert
1006+
# . add nowrap to history table date cell i.e. <td nowrap ...
1007+
#
10031008
# Revision 1.61 2002/01/17 23:04:53 richard
10041009
# . much nicer history display (actualy real handling of property types etc)
10051010
#

0 commit comments

Comments
 (0)