0001-villeurbanne-2018-don-t-show-agent-name-in-form-hist.patch
templates/variants/villeurbanne-2018/wcs/front/formdata_history.html | ||
---|---|---|
1 |
{% load i18n %} |
|
2 |
<div class="bo-block" id="evolution-log"> |
|
3 |
<h2 class="foldable">{% trans "Log" %}</h2> |
|
4 |
<ul id="evolutions"> |
|
5 |
{% for evolution in formdata.get_visible_evolution_parts %} |
|
6 |
{% with status=evolution.get_status display_parts=evolution.display_parts %} |
|
7 |
<li class="{% if evolution.who == '_submitter' %}msg-in{% elif evolution.who %}msg-out{% else %}msg-system{% endif %} {{ status.extra_css_class }}"> |
|
8 |
<span class="item" style="background: #{{ status.colour }}; color: {{ status.get_contrast_color}}"></span> |
|
9 |
<div> |
|
10 |
{% if evolution.status %} |
|
11 |
<div class="evolution-metadata"> |
|
12 |
<span class="status">{{evolution.get_status_label}}</span> |
|
13 |
<span class="time">{{evolution.datetime}}</span> |
|
14 |
</div> |
|
15 |
{% endif %} |
|
16 |
<div class="msg"> |
|
17 |
{% if evolution.who == '_submitter' %} |
|
18 |
<span class="user">{{evolution.get_author_name|default_if_none:""}} |
|
19 |
<span>{% if evolution.get_author_qualification %}({{evolution.get_author_qualification}}){% endif %}</span> |
|
20 |
</span> |
|
21 |
{% endif %} |
|
22 |
{% if not evolution.status %} |
|
23 |
<span class="time">{{evolution.datetime}}</span> |
|
24 |
{% endif %} |
|
25 |
{% if evolution.comment %} |
|
26 |
<div class="comment"> |
|
27 |
{{evolution.comment|linebreaks}} |
|
28 |
</div> |
|
29 |
{% endif %} |
|
30 |
{% for part in display_parts %} |
|
31 |
{{part|safe}} |
|
32 |
{% endfor %} |
|
33 |
</div> |
|
34 |
</div> |
|
35 |
</li> |
|
36 |
{% endwith %} |
|
37 |
{% endfor %} |
|
38 |
</ul> |
|
39 |
</div> |
|
0 |
- |