{% if perms.trans.commit_translation or perms.trans.update_translation %}
{% with object.git_needs_commit as needs_commit %}
{% 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 %}
{% if needs_commit %}
<p>{% trans "There are some not commited changes!" %}</p>
<p>{% trans "There are some not commited changes!" %}</p>
{% endif %}
{% endif %}
...
@@ -11,12 +16,24 @@
...
@@ -11,12 +16,24 @@
{% if object.git_needs_push %}
{% if object.git_needs_push %}
<p>{% trans "There are some new commits in local Git repository!" %}</p>
<p>{% trans "There are some new commits in local Git repository!" %}</p>
{% endif %}
{% endif %}
<ul>
{% if needs_commit %}
<divclass="details-accordion">
<li><ahref="{{ object.get_commit_url }}">{% trans "Commit pending changes" %}</a></li>
<h3><ahref="#">{% trans "Details" %}</a></h3>
{% endif %}
<div>
{% endwith %}
{% if object.subproject_set %}
{% if perms.trans.update_translation %}
{% for sp in object.subproject_set.all %}
<li><ahref="{{ object.get_update_url }}">{% trans "Pull changes from remote repository" %}</a></li>