diff --git a/src/wuttaweb/templates/batch/view.mako b/src/wuttaweb/templates/batch/view.mako index 1305079..0f2c0b9 100644 --- a/src/wuttaweb/templates/batch/view.mako +++ b/src/wuttaweb/templates/batch/view.mako @@ -7,86 +7,88 @@ <%def name="tool_panel_execution()"> - - % if batch.executed: - -

- Batch was executed
- ${app.render_time_ago(batch.executed)}
- by ${batch.executed_by} -

-
- % elif why_not_execute: - -

- Batch cannot be executed: -

-

- ${why_not_execute} -

-
- % else: - % if master.has_perm('execute'): - + % if master.executable: + + % if batch.executed: +

- Batch can be executed + Batch was executed
+ ${app.render_time_ago(batch.executed)}
+ by ${batch.executed_by}

- - Execute Batch - - - - -
- - % else: + % elif why_not_execute:

- Batch may be executed,
- but you do not have permission. + Batch cannot be executed: +

+

+ ${why_not_execute}

+ % else: + % if master.has_perm('execute'): + +

+ Batch can be executed +

+ + Execute Batch + + + + + +
+ + % else: + +

+ Batch may be executed,
+ but you do not have permission. +

+
+ % endif % endif - % endif -
+
+ % endif <%def name="modify_vue_vars()">