From b2020686f56fc210aacbbdc5174fd301f2b136de Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 6 Jan 2018 19:27:37 -0600 Subject: [PATCH] Tweak conditions for CSV row download link --- tailbone/templates/master/view.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/templates/master/view.mako b/tailbone/templates/master/view.mako index 547d70ae..02f20eda 100644 --- a/tailbone/templates/master/view.mako +++ b/tailbone/templates/master/view.mako @@ -61,7 +61,7 @@ % if master.cloneable and request.has_perm('{}.clone'.format(permission_prefix)):
  • ${h.link_to("Clone this as new {}".format(model_title), url('{}.clone'.format(route_prefix), uuid=instance.uuid))}
  • % endif - % if master.rows_downloadable_csv and request.has_perm('{}.row_results_csv'.format(permission_prefix)): + % if master.has_rows and master.rows_downloadable_csv and request.has_perm('{}.row_results_csv'.format(permission_prefix)):
  • ${h.link_to("Download row results as CSV", url('{}.row_results_csv'.format(route_prefix), uuid=instance.uuid))}
  • % endif