details: http://www.bx.psu.edu/hg/galaxy/rev/580ba7051984 changeset: 3176:580ba7051984 user: James Taylor <james@jamestaylor.org> date: Mon Dec 14 12:41:27 2009 -0500 description: Fix for grib buttons diffstat: templates/grid_base.mako | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diffs (24 lines): diff -r ef075ec1445a -r 580ba7051984 templates/grid_base.mako --- a/templates/grid_base.mako Mon Dec 14 12:17:01 2009 -0500 +++ b/templates/grid_base.mako Mon Dec 14 12:41:27 2009 -0500 @@ -854,11 +854,18 @@ # Attach popup menu? if column.attach_popup and cellnum == 0: id = 'grid-%d-popup' % i + # Determine appropriate class + cls = "" + if column.attach_popup or href: + cls = "menubutton" + if column.attach_popup and href: + cls = "menubutton split" + %> %if href: - <td><div id="${id}" class="menubutton split" style="float: left;"><a class="label" href="${href}">${v}</a></td> + <td><div id="${id}" class="${cls}" style="float: left;"><a class="label" href="${href}">${v}</a></td> %else: - <td><div id="${id}" class="menubutton">${v}</div></td> + <td><div id="${id}" class="${cls}">${v}</div></td> %endif %endfor %endif