{% load i18n %} {% load privacy_tags %} {% if request.user|is_admin:project %}
{% if not onboard.build %}

{% trans "Start building your documentation" %}

{% blocktrans trimmed %} This project has not been built yet. Try building the latest version now, or if you would like to build a specific version, select the version below and your documentation build will be triggered. {% endblocktrans %}

{% csrf_token %}
{% else %} {% if onboard.build.finished %} {% if onboard.build.success %} {% comment %}Last build passed{% endcomment %}

{% trans "Your documentation is ready to use" %}

{% blocktrans trimmed %} Your documentation has been built. Ensure your documentation is kept up to date with every commit to your repository, by setting up a webhook. {% endblocktrans %}

{% else %} {% comment %}Last build failed{% endcomment %}

{% trans "Your documentation failed to build" %}

{% blocktrans trimmed %} There was a problem building your documentation, you can see what went wrong in the build output. If you need more help, check out some of the problems frequently encountered during builds. {% endblocktrans %}

{% endif %} {% else %} {% url "builds_detail" project_slug=project.slug build_pk=onboard.build.pk as latest_build_url %}

{% trans "Your documentation is building" %}

{% blocktrans trimmed %} You'll be able to view your documentation in a minute or two, once your project is done building. {% endblocktrans %}

{% endif %} {% endif %}
{% endif %}