{% load i18n %}
{% load permissions %}

<p>{% trans "Weblate could not fetch upstream changes when updating the repository." %}</p>

<pre>{{ error }}</pre>

{% include "trans/alert/common-repo.html" %}

{% perm 'vcs.update' component as user_can_update %}
{% if user_can_update %}
  <p>
    <a href="" class="btn btn-primary link-post" data-href="{% url "update" path=component.get_url_path %}">{% trans "Update the repository" %}</a>
  </p>
{% endif %}
