details: http://www.bx.psu.edu/hg/galaxy/rev/ef0b9956f7d7 changeset: 2987:ef0b9956f7d7 user: jeremy goecks <jeremy.goecks@emory.edu> date: Mon Nov 09 14:56:21 2009 -0500 description: Bug fix. diffstat: templates/grid_base.mako | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diffs (44 lines): diff -r 4576ebdab5c9 -r ef0b9956f7d7 templates/grid_base.mako --- a/templates/grid_base.mako Mon Nov 09 14:49:44 2009 -0500 +++ b/templates/grid_base.mako Mon Nov 09 14:56:21 2009 -0500 @@ -296,6 +296,14 @@ </tbody> <tfoot> ## Row for navigating among pages. + <% + # Mapping between item class and plural term for item. + items_plural = "items" + if grid.model_class == History: + items_plural = "histories" + elif grid.model_class == HistoryDatasetAssociation: + items_plural = "datasets" + %> %if num_pages > 1: <tr> <td></td> @@ -328,7 +336,7 @@ </select> ## Show all link. <% args = { "page" : "all" } %> - <span>| <a href="${url( args )}">Show all histories on one page</a></span> + <span>| <a href="${url( args )}">Show all ${items_plural} on one page</a></span> </td> </tr> %endif @@ -336,15 +344,7 @@ ## Grid operations. <td></td> <td colspan="100"> - <% - # Mapping between item class and plural term for item. - plural = "items" - if grid.model_class == History: - plural = "histories" - elif grid.model_class == HistoryDatasetAssociation: - plural = "datasets" - %> - For <span class="grid-selected-count"></span> selected ${plural}: + For <span class="grid-selected-count"></span> selected ${items_plural}: %for operation in grid.operations: %if operation.allow_multiple: <input type="submit" name="operation" value="${operation.label}" class="action-button">