@ -62,6 +62,21 @@
@@ -62,6 +62,21 @@
{%- endmacro %}
{% macro colored_status(status) -%}
{% if status.name == 'APPROVAL' %}
<span class="label label-info">
{% elif status.name == 'ORDERED' %}
<span class="label label-warning">
{% elif status.name == 'COMPLETED' %}
<span class="label label-success">
{% else %}
<span class="label label-important">
{% endif %}
{{ status.value|lower }}
</span>
{%- endmacro %}
{% macro pagination_helper(page, text=None, css_class='') -%}
{% set is_active = 'active' if page == context.pages.current %}
{% set is_disabled = 'disabled' if not page %}
@ -71,6 +86,7 @@
@@ -71,6 +86,7 @@
</li>
{%- endmacro %}}
{% macro pagination() -%}
{% if context.pages and context.pages.last > 1 %}
<div class="pagination pagination-centered">