View aversion accept/reject icons and revision number.

This commit is contained in:
Emanuel Schuetze 2011-09-04 10:21:06 +02:00
parent 3d6e3576aa
commit 7271964f59
2 changed files with 19 additions and 10 deletions

View File

@ -211,8 +211,9 @@
{% else %} {% else %}
<i>[no number]</i> <i>[no number]</i>
{% endif %}</h1> {% endif %}</h1>
<h2>{{ application.title }}</h2> {% trans "Revision" %} {{ application.aid }}
<h2>{{ application.title }}</h2>
{{ application.text|linebreaks }} {{ application.text|linebreaks }}
@ -228,7 +229,7 @@
{% if application.versions|length > 1 %} {% if application.versions|length > 1 %}
<h2>{% trans "Revisions" %}:</h2> <h2>{% trans "Revisions" %}:</h2>
<table class="table"> <table class="table valigntop">
<tr> <tr>
<th>#</th> <th>#</th>
<th>{% trans "Time" %}</th> <th>{% trans "Time" %}</th>
@ -238,17 +239,22 @@
<th>{% trans "Reason" %}</th> <th>{% trans "Reason" %}</th>
</tr> </tr>
{% for revision in application.versions %} {% for revision in application.versions %}
<tr> <tr class="{% cycle 'odd' '' %}">
<td>{{ revision.aid }} <td>{{ revision.aid }}
{% if revision.rejected %} {% if application.status != "pub" %}
<img title="{%trans 'Version rejected' %}" src="/static/images/icons/task-reject.png">
{% else %}
{% if revision == application.permitted %} {% if revision == application.permitted %}
<img title="{%trans 'Version accepted' %}" src="/static/images/icons/task-accepted.png"> <img title="{%trans 'Version accepted' %}" src="/static/images/icons/task-accepted.png">
{% else %}{% if revision.id > application.permitted.id and perms.application.can_manage_application %} {% else %}
<a href="{% url application_version_permit revision.id %}"><img title="{%trans 'Accept Version' %}" src="/static/images/icons/task-accepted-grey.png"></a> {% if perms.application.can_manage_application %}
<a href="{% url application_version_reject revision.id %}"><img title="{%trans 'Reject Version' %}" src="/static/images/icons/task-reject-grey.png"></a> <a href="{% url application_version_permit revision.id %}"><img title="{%trans 'Accept Version' %}" src="/static/images/icons/task-accepted-grey.png"></a>
{% endif %}{% endif %} {% endif %}
{% if not revision.rejected and revision.id > application.permitted.id and perms.application.can_manage_application %}
<a href="{% url application_version_reject revision.id %}"><img title="{%trans 'Reject Version' %}" src="/static/images/icons/task-reject-grey.png"></a>
{% endif %}
{% endif %}
{% if revision.rejected %}
<img title="{%trans 'Version rejected' %}" src="/static/images/icons/task-reject.png">
{% endif %}
{% endif %} {% endif %}
</td> </td>
<td><i>{{ revision.time }}</i></td> <td><i>{{ revision.time }}</i></td>

View File

@ -224,6 +224,9 @@ table a.table_edit {
text-indent:-9999px; text-indent:-9999px;
width:16px; width:16px;
} }
.valigntop td {
vertical-align:top;
}
.agendatable td.dragcell { .agendatable td.dragcell {
padding: 0px 0 0px 10px; padding: 0px 0 0px 10px;
} }