{% if selected_category %}
{% for wf in object_list %}
{{ wf.name }}
{% if wf.description %}

{{ wf.description|truncatechars:120 }}

{% endif %}
Last Run: {% if wf.last_run_started %} {{ wf.last_run_started|date:"M d, Y H:i" }} {% else %} Never {% endif %} Last Run By: {% if wf.last_run_requested_by %} {{ wf.last_run_requested_by }} {% else %} - {% endif %} Last Status: {% if wf.last_run_status %} {{ wf.last_run_status|title }} {% else %} - {% endif %}
{% if can_execute_workflows %}
Launch Workflow
{% else %}
{% endif %}
{% endfor %}
{% else %} {% for category, workflows in workflows_by_category.items %}
{{ category }} {{ workflows|length }}
{% if category != "Uncategorized" %} {% endif %}
{% for wf in workflows %}
{{ wf.name }}
{% if wf.description %}

{{ wf.description|truncatechars:120 }}

{% endif %}
Last Run: {% if wf.last_run_started %} {{ wf.last_run_started|date:"M d, Y H:i" }} {% else %} Never {% endif %} Last Run By: {% if wf.last_run_requested_by %} {{ wf.last_run_requested_by }} {% else %} - {% endif %} Last Status: {% if wf.last_run_status %} {{ wf.last_run_status|title }} {% else %} - {% endif %}
{% if can_execute_workflows %} {% else %}
{% endif %}
{% endfor %}
{% if not forloop.last %}
{% endif %} {% endfor %} {% endif %}