Menu

Commit [r4618]  Maximize  Restore  History

Property renderer branch: allow property renderers to gain more control over the rendering

If the text or markup output implemented so far doesn't provide enough control, one can now return a `RenderedProperty` instance. This disables the default blurb associated to properties (like ''Property '''blah''' set to ...'') and allows to specify the full `content`. In the case of #2545 (revprops) the `name` can also be set, as well as the attributes for the <dt> and <dl> elements containing the name and the content, respectively.

cboos 2007-01-23

changed /sandbox/property-renderers-tmp/templates/browser.html
changed /sandbox/property-renderers-tmp/templates/changeset.html
changed /sandbox/property-renderers-tmp/templates/diff_div.html
changed /sandbox/property-renderers-tmp/trac/mimeview/patch.py
changed /sandbox/property-renderers-tmp/trac/versioncontrol/web_ui/browser.py
changed /sandbox/property-renderers-tmp/trac/versioncontrol/web_ui/changeset.py
/sandbox/property-renderers-tmp/templates/browser.html Diff Switch to side-by-side view
Loading...
/sandbox/property-renderers-tmp/templates/changeset.html Diff Switch to side-by-side view
Loading...
/sandbox/property-renderers-tmp/templates/diff_div.html Diff Switch to side-by-side view
Loading...
/sandbox/property-renderers-tmp/trac/mimeview/patch.py Diff Switch to side-by-side view
Loading...
/sandbox/property-renderers-tmp/trac/versioncontrol/web_ui/browser.py Diff Switch to side-by-side view
Loading...
/sandbox/property-renderers-tmp/trac/versioncontrol/web_ui/changeset.py Diff Switch to side-by-side view
Loading...
Auth0 Logo