Add link to generate new report, when viewing one

This commit is contained in:
Lance Edgar 2020-03-26 15:30:14 -05:00
parent 89ffbd6efc
commit aaabde5c5a

View file

@ -0,0 +1,11 @@
## -*- coding: utf-8; -*-
<%inherit file="/master/view.mako" />
<%def name="context_menu_items()">
${parent.context_menu_items()}
% if request.has_perm('{}.generate'.format(permission_prefix)):
<li>${h.link_to("Generate new Report", url('generate_report'))}</li>
% endif
</%def>
${parent.body()}