diff --git a/tailbone/templates/batch/view.mako b/tailbone/templates/batch/view.mako index ceaf9676..8316c4b9 100644 --- a/tailbone/templates/batch/view.mako +++ b/tailbone/templates/batch/view.mako @@ -75,6 +75,34 @@ % endif +<%def name="object_helpers()"> + ${self.render_status_breakdown()} + + +<%def name="render_status_breakdown()"> + % if status_breakdown is not Undefined and status_breakdown is not None: +
+

Row Status Breakdown

+
+ % if status_breakdown: +
+ + % for i, (status, count) in enumerate(status_breakdown): + + + + + % endfor +
${status}${count}
+
+ % else: +

Nothing to report yet.

+ % endif +
+
+ % endif + +
@@ -83,27 +111,9 @@
- % if status_breakdown is not Undefined and status_breakdown is not None: -
-

Row Status Breakdown

-
- % if status_breakdown: -
- - % for i, (status, count) in enumerate(status_breakdown): - - - - - % endfor -
${status}${count}
-
- % else: -

Nothing to report yet.

- % endif -
-
- % endif +
+ ${self.object_helpers()} +
    ${self.context_menu_items()}