{% 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 %}
{% if perms.trans.commit_translation or perms.trans.update_translation %}
<ulclass="buttons">
<divclass="btn-group">
<li><ahref="{{ object.get_commit_url }}"title="{% trans "Commitpendingchanges"%}"{%ifnotneeds_commit%}class="disabled"{%endif%}>{% trans "Commit" %}</a></li>
<ahref="{{ object.get_commit_url }}"title="{% trans "Commitpendingchanges"%}"class="btn btn-default{% if not needs_commit %} disabled{% endif %}">{% trans "Commit" %}</a>
<li><ahref="{{ object.get_update_url }}"title="{% trans "Pullchangesfromremoterepository"%}"{%ifnotperms.trans.update_translation%}class="disabled"{%endif%}>{% trans "Pull" %}</a></li>
<ahref="{{ object.get_update_url }}"title="{% trans "Pullchangesfromremoterepository"%}"class="btn btn-default{% if not perms.trans.update_translation %} disabled{% endif %}">{% trans "Pull" %}</a>
<li><ahref="{{ object.get_push_url }}"title="{% trans "Pushchangestoremoterepository"%}"{%ifnotperms.trans.push_translationornotobject.can_push%}class="disabled"{%endif%}>{% trans "Push" %}</a></li>
<ahref="{{ object.get_push_url }}"title="{% trans "Pushchangestoremoterepository"%}"class="btn btn-default{% if not perms.trans.push_translation or not object.can_push %} disabled{% endif %}">{% trans "Push" %}</a>
{% if perms.trans.reset_translation %}
{% if perms.trans.reset_translation %}
<li><ahref="{{ object.get_reset_url }}"title="{% trans "Resetallchangesinlocalrepository"%}"class="confirm-reset">{% trans "Reset" %}</a></li>
<ahref="{{ object.get_reset_url }}"title="{% trans "Resetallchangesinlocalrepository"%}"class="btn btn-default confirm-reset">{% trans "Reset" %}</a>
{% endif %}
{% endif %}
{% if perms.trans.lock_subproject and object.is_git_lockable %}
{% if perms.trans.lock_subproject and object.is_git_lockable %}
{% if object.is_git_locked %}
{% if object.is_git_locked %}
<li><ahref="{{ object.get_unlock_url }}"title="{% trans "Allowchangesintherepository"%}">{% trans "Unlock" %}</a></li>
<ahref="{{ object.get_unlock_url }}"title="{% trans "Allowchangesintherepository"%}"class="btn btn-default">{% trans "Unlock" %}</a>
{% else %}
{% else %}
<li><ahref="{{ object.get_lock_url }}"title="{% trans "Preventanychangesintherepository"%}">{% trans "Lock" %}</a></li>
<ahref="{{ object.get_lock_url }}"title="{% trans "Preventanychangesintherepository"%}"class="btn btn-default">{% trans "Lock" %}</a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</ul>
</div>
{% if needs_commit %}
{% if needs_commit %}
<p>{% trans "There are some not committed changes!" %}</p>
<p>{% trans "There are some not committed changes!" %}</p>