Don't show CSV download link if master view opts out
This commit is contained in:
parent
60c5d31aa1
commit
bb6a838d3b
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
<%def name="context_menu_items()">
|
<%def name="context_menu_items()">
|
||||||
${parent.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)):
|
||||||
<li>${h.link_to("Download row data as CSV", url('{}.csv'.format(route_prefix), uuid=batch.uuid))}</li>
|
<li>${h.link_to("Download row data as CSV", url('{}.csv'.format(route_prefix), uuid=batch.uuid))}</li>
|
||||||
% endif
|
% endif
|
||||||
</%def>
|
</%def>
|
||||||
|
|
Loading…
Reference in a new issue