diff --git a/tailbone/templates/batch/view.mako b/tailbone/templates/batch/view.mako index 9dbe3180..13ba7ecb 100644 --- a/tailbone/templates/batch/view.mako +++ b/tailbone/templates/batch/view.mako @@ -40,9 +40,6 @@ <%def name="context_menu_items()"> ${parent.context_menu_items()} - % 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 % if master.cloneable and request.has_perm('{}.clone'.format(permission_prefix)):
  • ${h.link_to("Clone as new batch", url('{}.clone'.format(route_prefix), uuid=batch.uuid))}
  • % endif diff --git a/tailbone/templates/master/view.mako b/tailbone/templates/master/view.mako index b6946a75..547d70ae 100644 --- a/tailbone/templates/master/view.mako +++ b/tailbone/templates/master/view.mako @@ -61,6 +61,9 @@ % 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)): +
  • ${h.link_to("Download row results as CSV", url('{}.row_results_csv'.format(route_prefix), uuid=instance.uuid))}
  • + % endif