From bb6a838d3ba80d148524c1b4e74ba8dbb8493d9f Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 26 Aug 2016 15:41:22 -0500 Subject: [PATCH] Don't show CSV download link if master view opts out --- tailbone/templates/newbatch/view.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/templates/newbatch/view.mako b/tailbone/templates/newbatch/view.mako index 0dce344b..073116d7 100644 --- a/tailbone/templates/newbatch/view.mako +++ b/tailbone/templates/newbatch/view.mako @@ -19,7 +19,7 @@ <%def name="context_menu_items()"> ${parent.context_menu_items()} - % if request.has_perm('{}.csv'.format(permission_prefix)): + % if master.rows_downloadable and request.has_perm('{}.csv'.format(permission_prefix)):
  • ${h.link_to("Download row data as CSV", url('{}.csv'.format(route_prefix), uuid=batch.uuid))}
  • % endif