{% if perms.trans.commit_translation or perms.trans.update_translation %}
{% with object.git_needs_commit as needs_commit %}
{% if perms.trans.commit_translation or perms.trans.update_translation %}
<ulclass="buttons">
<li><ahref="{{ object.get_commit_url }}"title="{% trans "Commitpendingchanges"%}"{%ifnotneeds_commit%}class="disabled"{%endif%}>{% trans "Commit" %}</a></li>
<li><ahref="{{ object.get_update_url }}"title="{% trans "Pullchangesfromremoterepository"%}"{%ifnotperms.trans.update_translation%}class="disabled"{%endif%}>{% trans "Pull" %}</a></li>
</ul>
{% if needs_commit %}
<p>{% trans "There are some not commited changes!" %}</p>
{% endif %}
...
...
@@ -11,12 +16,24 @@
{% if object.git_needs_push %}
<p>{% trans "There are some new commits in local Git repository!" %}</p>
{% endif %}
<ul>
{% if needs_commit %}
<li><ahref="{{ object.get_commit_url }}">{% trans "Commit pending changes" %}</a></li>
{% endif %}
{% endwith %}
{% if perms.trans.update_translation %}
<li><ahref="{{ object.get_update_url }}">{% trans "Pull changes from remote repository" %}</a></li>