From aaabde5c5aae30e2fe81b43690ca98e996467e26 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 26 Mar 2020 15:30:14 -0500 Subject: [PATCH] Add link to generate new report, when viewing one --- tailbone/templates/reports/generated/view.mako | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tailbone/templates/reports/generated/view.mako diff --git a/tailbone/templates/reports/generated/view.mako b/tailbone/templates/reports/generated/view.mako new file mode 100644 index 00000000..c7d34efa --- /dev/null +++ b/tailbone/templates/reports/generated/view.mako @@ -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)): +
  • ${h.link_to("Generate new Report", url('generate_report'))}
  • + % endif + + +${parent.body()}