Part of lp.translations.browser.potemplate View In Hierarchy
Known subclasses: lp.translations.browser.distroseries.DistroSeriesTemplatesView, lp.translations.browser.productseries.ProductSeriesTemplatesView
Method | initialize | Undocumented |
Method | iter_data | Undocumented |
Method | rowCSSClass | Undocumented |
Method | constructTemplateURL | Build the URL for template . |
Method | renderTemplatesHeader | Render HTML for the templates table header. |
Method | renderTemplateRow | Render HTML for an entire template row. |
Method | _renderSourcePackage | Render the SourcePackageName for template . |
Method | _renderTemplateLink | Render a link to template . |
Method | _renderSharing | Render a link to template . |
Method | _renderLastUpdateDate | Render a template's "last updated" column. |
Method | _renderAction | Render an action for the "actions" column. |
Method | _renderActionsColumn | Render a template's "actions" column. |
Method | _renderField | Create a table field of the given class and contents. |
template
.Parameters | template | The target POTemplate . |
url | The cached URL for template . | |
Returns | HTML for a link to template . |
template
.Parameters | template | The target POTemplate . |
Returns | HTML for the "sharing" status of template . |
Parameters | base_url | The cached URL for template . |
name | Action name for display in the UI. | |
path | Path suffix for the action (relative to base_url ). | |
sprite | Sprite class for the action. | |
enabled | Show this action? If not, return empty string. | |
Returns | HTML for the contents of the "actions" column. |
Parameters | column_class | CSS class for this column. |
content | HTML to go into the column. If None, the field will be omitted entirely. (To produce an empty column, pass the empty string instead.) | |
tag | The HTML tag to surround the field in. | |
Returns | HTML for the entire table field, or the empty string if
content was None. |
template
.
Since this is performance-critical, views are allowed to override it with optimized implementations.