{% extends "includes/elements/chips/base.html" %} {% load naturaltime from humanize %} {% block chip_view_params %} '{% url "projects-builds-detail" project.slug build.pk %}' {% endblock chip_view_params %} {% block chip_url %} {% url "builds_detail" project.slug build.pk %} {% endblock chip_url %} {% block chip_icon %} {% include "builds/includes/status_icon.html" with build=build size="" %} {% endblock chip_icon %} {% block chip_text %} {% comment %} Allow for override of the text for version listing, where version is already stated. Also use build method to get version name, in case version instance was deleted at some point. The version name is stored on the build in this scenario. {% endcomment %} {% firstof text build.get_version_name %} {% endblock chip_text %} {% block chip_detail_text %} #{{ build.id }} {% endblock chip_detail_text %} {% block popupcard_header %} {% comment %} This block is the same as the chip_text block above. {% endcomment %} {% firstof text build.get_version_name %} #{{ build.id }} {% endblock popupcard_header %} {% block popupcard_right %} {% include "builds/includes/status_icon.html" with build=build size="small" circular=True classes="right floated" data_bind=True %} {% endblock popupcard_right %} {% block popupcard_meta %} {% endblock popupcard_meta %} {% block popupcard_content %} {% if build.error %}
{{ build.error }}
{% endif %} {% endblock popupcard_content %} {% block popupcard_extra %} {% if build.commit %} {{ build.commit|slice:"0:8" }} {% endif %}