View aversion accept/reject icons and revision number.
This commit is contained in:
parent
3d6e3576aa
commit
7271964f59
@ -211,8 +211,9 @@
|
||||
{% else %}
|
||||
<i>[no number]</i>
|
||||
{% endif %}</h1>
|
||||
<h2>{{ application.title }}</h2>
|
||||
{% trans "Revision" %} {{ application.aid }}
|
||||
|
||||
<h2>{{ application.title }}</h2>
|
||||
|
||||
{{ application.text|linebreaks }}
|
||||
|
||||
@ -228,7 +229,7 @@
|
||||
{% if application.versions|length > 1 %}
|
||||
<h2>{% trans "Revisions" %}:</h2>
|
||||
|
||||
<table class="table">
|
||||
<table class="table valigntop">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{% trans "Time" %}</th>
|
||||
@ -238,17 +239,22 @@
|
||||
<th>{% trans "Reason" %}</th>
|
||||
</tr>
|
||||
{% for revision in application.versions %}
|
||||
<tr>
|
||||
<tr class="{% cycle 'odd' '' %}">
|
||||
<td>{{ revision.aid }}
|
||||
{% if revision.rejected %}
|
||||
<img title="{%trans 'Version rejected' %}" src="/static/images/icons/task-reject.png">
|
||||
{% else %}
|
||||
{% if application.status != "pub" %}
|
||||
{% if revision == application.permitted %}
|
||||
<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 %}
|
||||
{% if perms.application.can_manage_application %}
|
||||
<a href="{% url application_version_permit revision.id %}"><img title="{%trans 'Accept Version' %}" src="/static/images/icons/task-accepted-grey.png"></a>
|
||||
{% 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 %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if revision.rejected %}
|
||||
<img title="{%trans 'Version rejected' %}" src="/static/images/icons/task-reject.png">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td><i>{{ revision.time }}</i></td>
|
||||
|
@ -224,6 +224,9 @@ table a.table_edit {
|
||||
text-indent:-9999px;
|
||||
width:16px;
|
||||
}
|
||||
.valigntop td {
|
||||
vertical-align:top;
|
||||
}
|
||||
.agendatable td.dragcell {
|
||||
padding: 0px 0 0px 10px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user