mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-05-29 07:44:08 +08:00
40 lines
1.4 KiB
HTML
Vendored
40 lines
1.4 KiB
HTML
Vendored
{% load i18n %}
|
|
{% with object.git_needs_commit as needs_commit %}
|
|
{% if perms.trans.commit_translation or perms.trans.update_translation %}
|
|
|
|
<ul class="buttons">
|
|
<li><a href="{{ object.get_commit_url }}" title="{% trans "Commit pending changes" %}"{% if not needs_commit %} class="disabled"{% endif %}>{% trans "Commit" %}</a></li>
|
|
<li><a href="{{ object.get_update_url }}" title="{% trans "Pull changes from remote repository" %}"{% if not perms.trans.update_translation %} class="disabled"{% endif %}>{% trans "Pull" %}</a></li>
|
|
<li><a href="{{ object.get_push_url }}" title="{% trans "Push changes to remote repository" %}"{% if not perms.trans.push_translation or not object.can_push %} class="disabled"{% endif %}>{% trans "Push" %}</a></li>
|
|
</ul>
|
|
|
|
{% if needs_commit %}
|
|
<p>{% trans "There are some not commited changes!" %}</p>
|
|
{% endif %}
|
|
{% if object.git_needs_pull %}
|
|
<p>{% trans "Remote Git repository needs to be merged!" %}</p>
|
|
{% endif %}
|
|
{% if object.git_needs_push %}
|
|
<p>{% trans "There are some new commits in local Git repository!" %}</p>
|
|
{% endif %}
|
|
|
|
<div class="details-accordion">
|
|
<h3><a href="#">{% trans "Details" %}</a></h3>
|
|
<div>
|
|
{% if object.subproject_set %}
|
|
{% for sp in object.subproject_set.all %}
|
|
<h4>{{ sp }}</h3>
|
|
<pre>
|
|
{{ sp.get_repo.git.status }}
|
|
</pre>
|
|
{% endfor %}
|
|
{% else %}
|
|
<pre>
|
|
{{ object.get_repo.git.status }}
|
|
</pre>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
{% endif %}
|
|
{% endwith %}
|