{% extends 'admin/model/details.html' %} {% import 'test_run.html' as test_run_lib with context %} {% block title %} Test run / {{ model.name }} {% endblock %} {% block tail %} {{ super() }} {{ test_run_lib.add_button_style() }} {% if model.status not in ['STARTED', 'RUNNING'] %} {{ render_edit_button(model) }} {% endif %} {% if model.report %} {% if model.status != 'INTERNAL_ERROR' and model.report != 'not_created' %} {{ render_allure_button(model) }} {% endif %} {% else %} {% endif %} {% if model.status == 'SUCCESS' %} {{ render_pr_button(model) }} {% endif %} {% endblock %} {% macro render_edit_button(model) %} {% endmacro %} {% macro render_allure_button(model) %}
{% endmacro %} {% macro render_pr_button(model) %}
{% endmacro %}