Skip to content

Commit 85b6124

Browse files
author
Richard Jones
committed
more flexibility in classhelp link labelling (feature [SF#608204])
1 parent 88e3f46 commit 85b6124

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Feature:
5454
- roundup mailgw now handles apop
5555
- implemented ability to search for multilink properties with no value
5656
- Class.find() may now find unset Links (sf bug 700620)
57+
- more flexibility in classhelp link labelling (sf feature 608204)
5758

5859

5960
Fixed:

roundup/cgi/templating.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def filter(self, request=None):
420420
for x in self._klass.filter(None, filterspec, sort, group)]
421421
return l
422422

423-
def classhelp(self, properties=None, label='list', width='500',
423+
def classhelp(self, properties=None, label='(list)', width='500',
424424
height='400', property=''):
425425
''' Pop up a javascript window with class help
426426
@@ -443,8 +443,8 @@ def classhelp(self, properties=None, label='list', width='500',
443443
properties = ','.join(properties)
444444
if property:
445445
property = '&property=%s'%property
446-
return '<a href="javascript:help_window(\'%s?:template=help&' \
447-
'properties=%s%s\', \'%s\', \'%s\')"><b>(%s)</b></a>'%(
446+
return '<a class="classhelp" href="javascript:help_window(\'%s?:'\
447+
'template=help&properties=%s%s\', \'%s\', \'%s\')">%s</a>'%(
448448
self.classname, properties, property, width, height, label)
449449

450450
def submit(self, label="Submit New Entry"):

roundup/templates/classic/html/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ a[href]:hover { color:blue; text-decoration: underline; }
77
a[href]:link { color:blue; text-decoration: none; }
88
a[href] { color:blue; text-decoration: none; }
99

10+
a.classhelp:hover { font-weight: bold; }
11+
a.classhelp:link { font-weight: bold; }
12+
a.classhelp { font-weight: bold; }
13+
1014
table.body {
1115
border: 0;
1216
padding: 0;

0 commit comments

Comments
 (0)