Show clickable done action in first column in agenda overview.

This commit is contained in:
Emanuel Schuetze 2012-04-15 14:28:01 +02:00
parent ddeaea88c4
commit 0657ff340d
3 changed files with 8 additions and 7 deletions

View File

@ -1,5 +1,5 @@
a.close_link.closed span {
background-image: url(../images/icons/user-offline.png);
background-image: url(../images/icons/task-complete-grey.png);
background-repeat: no-repeat;
background-position: center;
width: 16px;
@ -7,7 +7,7 @@ a.close_link.closed span {
display: inline-block;
}
a.close_link.open span {
background-image: url(../images/icons/user-online.png);
background-image: url(../images/icons/task-complete.png);
background-repeat: no-repeat;
background-position: center;
width: 16px;

View File

@ -4,7 +4,11 @@
<tr class="draggable{% cycle ' odd' '' %}
{% if item.active %}activeline{% endif %}">
<td>
{% if item.closed %}
{% if perms.agenda.can_manage_agenda %}
<a class="close_link {% if item.closed %}closed{% else %}open{% endif %}" href="{% if item.closed %}{% url item_open item.id %}{% else %}{% url item_close item.id %}{% endif %}">
<span></span>
</a>
{% elif item.closed %}
<img src="{% static 'images/icons/task-complete.png' %}" title="{% trans 'Item closed' %}">
{% endif %}
</td>
@ -22,9 +26,6 @@
{% if perms.agenda.can_manage_agenda %}
<a href="{% url item_edit item.id %}"><img src="{% static 'images/icons/document-edit.png' %}" title="{% trans 'Edit item' %}"></a>
<a href="{% url item_delete item.id %}"><img src="{% static 'images/icons/edit-delete.png' %}" title="{% trans 'Delete item' %}"></a>
<a class="close_link {% if item.closed %}closed{% else %}open{% endif %}" href="{% if item.closed %}{% url item_open item.id %}{% else %}{% url item_close item.id %}{% endif %}">
<span></span>
</a>
{% endif %}
</span>
</td>

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B