{% if obj.status == 'New' or obj.status == 'Paused' %}
|
{% if obj.status == 'Paused' %}Resume{% else %}Start{% endif %}
{% endif %}
{% if obj.status == 'Paused' %}
|
{% endif %}
{% if obj.status == 'Running' %}
|
Pause
|
{% endif %}
{% if obj.status == 'Running' or obj.status == 'Paused' %}
Finish
{% endif %}