{% extends "projects/base.html" %} {% load blocktrans trans from i18n %} {% load is_admin from privacy_tags %} {% block title %} {{ build.project.name }} {% endblock title %} {% block content-header %} {% include "projects/partials/header.html" with builds_active="active" %} {% endblock content-header %} {% block content %}
{% block build_detail_metadata %}
{# Build progress on the left #} {% block build_detail_metadata_left %}
{% comment %} The state icon expects the build API response directly instead, so we recreate the used fields here. The `data_bind` attribute is used when the build has not finished yet -- when we can expect the page might update with a new build state. Otherwise, it's skipped and we can assume there is no data binding. {% endcomment %} {% include "builds/includes/status_icon.html" with build=build size="small" circular=True data_bind=True %}
{% include "builds/includes/build_name.html" with build=build is_page_title=True %}
{% endblock build_detail_metadata_left %} {# Build metadata on the right #} {% block build_detail_metadata_right %}
{% endblock build_detail_metadata_right %}
{% endblock build_detail_metadata %} {% if build.output %} {% comment %} This is a very old build type, before we supported individual build commands. It is very not supported anymore so we'll just throw an error so we're not silently failing. {% endcomment %}
{% trans "Build output unavailable" %}

{% blocktrans %} Due to the age of this build, the output of this build is no longer available. {% endblocktrans %}

{% else %} {% block build_detail_notifications %} {% comment %} Build notification and error list This uses ``readthedocs-notification`` directly, so that the build detail view can handle all of the API requests in one place. We pass the entire API notification response object into the web component, which handles the data the same way as the notification list element. {% endcomment %} {% comment %} Support for old style build errors, without notifications. In these builds, ``error`` is a string and there is no header, so we use a generic header instead. {% endcomment %} {% endblock build_detail_notifications %}
{% comment %} This is a loading placeholder. The extra element is to fill out the extra space in the div {% endcomment %}
{% endif %}
{% endblock content %}