From 4639d4a7db1688b3dbd120cd8767ea5680932c74 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 13 Aug 2017 20:07:37 -0500 Subject: [PATCH] Give older/newer buttons the autodisable treatment --- tailbone/templates/master/view.mako | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tailbone/templates/master/view.mako b/tailbone/templates/master/view.mako index 6c3fc928..b6946a75 100644 --- a/tailbone/templates/master/view.mako +++ b/tailbone/templates/master/view.mako @@ -30,12 +30,12 @@ % if master.supports_prev_next:
% if prev_instance: - ${h.link_to(u"« Older", url('{}.view'.format(route_prefix), uuid=prev_instance.uuid), class_='button')} + ${h.link_to(u"« Older", url('{}.view'.format(route_prefix), uuid=prev_instance.uuid), class_='button autodisable')} % else: ${h.link_to(u"« Older", '#', class_='button', disabled='disabled')} % endif % if next_instance: - ${h.link_to(u"Newer »", url('{}.view'.format(route_prefix), uuid=next_instance.uuid), class_='button')} + ${h.link_to(u"Newer »", url('{}.view'.format(route_prefix), uuid=next_instance.uuid), class_='button autodisable')} % else: ${h.link_to(u"Newer »", '#', class_='button', disabled='disabled')} % endif