{% extends 'generic/object.html' %} {% load static %} {% load helpers %} {% load plugins %} {% load render_table from django_tables2 %} {% load i18n %} {% load branch_buttons %} {% block extra_controls %} {% if not object.is_active %} {% if object.ready %} {% trans "Activate" %} {% else %} {% trans "Activate" %} {% endif %} {% elif object.is_active %} {% trans "Deactivate" %} {% endif %} {% if object.ready %} {% branch_sync_button object %} {% branch_merge_button object %} {% endif %} {% if object.merged %} {% branch_revert_button object %} {% branch_archive_button object %} {% endif %} {% endblock %} {% block content %} {% if last_job.status == 'errored' %} {% endif %} {% if object.pending_migrations %} {% endif %}
{% trans "Branch" %}
{% trans "Name" %} {{ object.name }}
{% trans "Schema ID" %} {{ object.schema_id }}
{% trans "Status" %} {% if object.is_active %} {% trans "Active" as status %} {% badge status "blue" %} {% else %} {% badge object.get_status_display object.get_status_color %} {% endif %} {% if last_job.status == 'failed' %} {% trans "Job failed" %} {% endif %}
{% trans "Owner" %} {{ object.owner }}
{% trans "Description" %} {{ object.description|placeholder }}
{% trans "Last synced" %} {% if object.last_sync %} {{ object.last_sync|isodatetime }} {% if object.is_stale %} {% endif %}
{{ object.last_sync|timesince }} {% trans "ago" %}
{% else %} {{ ''|placeholder }} {% endif %}
{% trans "Last activity" %} {{ latest_change.time|isodatetime|placeholder }} {% if latest_change %}
{{ latest_change.time|timesince }} {% trans "ago" %}
{% endif %}
{% trans "Conflicts" %} {% if not object.ready %} {{ ''|placeholder }} {% elif conflicts_count %} {{ conflicts_count }} {% trans "conflicts found" %} {% else %} {% trans "None found" %} {% endif %}
{% trans "Database schema" %} {{ object.schema_name }}
{% include 'inc/panels/tags.html' %} {% include 'inc/panels/custom_fields.html' %} {% plugin_left_page object %}
{% include 'inc/panels/comments.html' %}
{% trans "Event History" %}
{% for event in object.get_event_history %}
{% if event.pk %} {# Event object #}
{% badge event.get_type_display bg_color=event.get_type_color %}
{{ event.get_type_display }}{% if event.user %} by {{ event.user }}{% endif %} {{ event.time|isodatetime }}
{% else %} {# Change summary #} {% endif %}
{% empty %}
{% trans "None" %}
{% endfor %}
{% plugin_right_page object %}
{% trans "Created" %}
{% trans "Updated" %}
{% trans "Deleted" %}
{% plugin_full_width_page object %}
{% endblock %}