Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 1565:1e617a4a663d
more flexibility in classhelp link labelling (feature [SF#608204])
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 26 Mar 2003 10:55:45 +0000 |
| parents | 323ff980c2dd |
| children | 21312a7564fd |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Wed Mar 26 10:47:09 2003 +0000 +++ b/roundup/cgi/templating.py Wed Mar 26 10:55:45 2003 +0000 @@ -420,7 +420,7 @@ for x in self._klass.filter(None, filterspec, sort, group)] return l - def classhelp(self, properties=None, label='list', width='500', + def classhelp(self, properties=None, label='(list)', width='500', height='400', property=''): ''' Pop up a javascript window with class help @@ -443,8 +443,8 @@ properties = ','.join(properties) if property: property = '&property=%s'%property - return '<a href="javascript:help_window(\'%s?:template=help&' \ - 'properties=%s%s\', \'%s\', \'%s\')"><b>(%s)</b></a>'%( + return '<a class="classhelp" href="javascript:help_window(\'%s?:'\ + 'template=help&properties=%s%s\', \'%s\', \'%s\')">%s</a>'%( self.classname, properties, property, width, height, label) def submit(self, label="Submit New Entry"):
