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