Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 1051:a0c7df67dd9c
Allow a page request to include a :contentonly variable.
If it exists, we only render the content of the page, and not the
surrounding "page" template.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 05 Sep 2002 01:27:42 +0000 |
| parents | b9988e118055 |
| children | 7f9b942128a3 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Thu Sep 05 00:38:11 2002 +0000 +++ b/roundup/cgi/templating.py Thu Sep 05 01:27:42 2002 +0000 @@ -323,8 +323,8 @@ height. The popup window will be resizable and scrollable. ''' return '<a href="javascript:help_window(\'%s?:template=help&' \ - 'properties=%s\', \'%s\', \'%s\')"><b>(%s)</b></a>'%(self.classname, - properties, width, height, label) + ':contentonly=1&properties=%s\', \'%s\', \'%s\')"><b>'\ + '(%s)</b></a>'%(self.classname, properties, width, height, label) def submit(self, label="Submit New Entry"): ''' Generate a submit button (and action hidden element)
