hide tags deletion btns if no perm tags managment

This commit is contained in:
Élie Bouttier 2014-08-14 01:18:00 -07:00
parent 1b27d160bc
commit acab573b87

View file

@ -109,7 +109,11 @@
{% if issue.labels.count %} {% if issue.labels.count %}
{% for label in issue.labels.all %} {% for label in issue.labels.all %}
<div class="row"> <div class="row">
{% if perm.manage_tags %}
<a href="{% url 'remove-label-from-issue' project.name issue.id label.id %}"><span class="glyphicon glyphicon-remove remove-label"></span></a> <a href="{% url 'remove-label-from-issue' project.name issue.id label.id %}"><span class="glyphicon glyphicon-remove remove-label"></span></a>
{% else %}
<span style="display: inline-block; margin-left: 14px;"></span>
{% endif %}
<a href="{% same_label label %}">{% labeled label %}</a> <a href="{% same_label label %}">{% labeled label %}</a>
</div> </div>
{% endfor %} {% endfor %}
@ -140,8 +144,14 @@
{% endif %} {% endif %}
<br /><br /> <br /><br />
{% if issue.milestone %} {% if issue.milestone %}
<a href="{% url 'remove-milestone-from-issue' project.name issue.id issue.milestone.name %}"><span class="glyphicon glyphicon-remove remove-label"></span></a> <div class="row">
<a href="{% same_milestone issue.milestone %}"><b>{{ issue.milestone }}</b></a> {% if perm.manage_tags %}
<a href="{% url 'remove-milestone-from-issue' project.name issue.id issue.milestone.name %}"><span class="glyphicon glyphicon-remove remove-label"></span></a>
{% else %}
<span style="display: inline-block; margin-left: 14px;"></span>
{% endif %}
<a href="{% same_milestone issue.milestone %}"><b>{{ issue.milestone }}</b></a>
</div>
{% else %} {% else %}
No milestone No milestone
{% endif %} {% endif %}