-
Notifications
You must be signed in to change notification settings - Fork 1
/
whipcount_results.html
62 lines (62 loc) · 2.77 KB
/
whipcount_results.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<div id="ak-whipcount-targets">
{% for group in target_groups %}
<h3>{{ group.name }}</h3>
<table class="ak-whipcount-listing">
<thead>
<th>Name</th>
<th>Seat</th>
<th>Calls <span class="ak-hide-under-750">Reported</span></th>
<th>Stance</th>
<th></th>
</thead>
<tbody>
{% for target in group.targets %}
<tr class="ak-target-{{ target.stance.view }}">
<td>
<a class="ak-target-name ak-highlight-on-hover" href="?target={{ target.resource_uri }}&akid={{ user.token }}&source={{ args.source }}&referring_akid={{ args.referring_akid }}">{{ target.title_last }}</a>
</td>
<td>
{% if target.us_district %}
{{ target.us_district }}
{% elif target.seat %}
{{ target.seat }}
{% elif target.state %}
{{ target.state }}
{% else %}
{{ target.district_name }}
{% endif %}
</td>
<td>
{{ target.stance.calls }}
</td>
<td>
{% if not target.stance.view %}
<div class="ak-whipcount-icon">
<img src="/media/modern/stance-unknown.svg">
</div>
<span class="ak-target-stance">Unknown</span>
{% elif target.stance.view == 'supportive' %}
<div class="ak-whipcount-icon">
<img src="/media/modern/stance-supportive.svg">
</div>
<span class="ak-target-stance">{{ target.stance.view|title}}</span>
{% elif target.stance.view == 'opposed' %}
<div class="ak-whipcount-icon">
<img src="/media/modern/stance-opposed.svg">
</div>
<span class="ak-target-stance">{{ target.stance.view|title}}</span>
{% elif target.stance.view == 'uncommitted' %}
<span class="ak-target-stance">{{ target.stance.view|title}}</span>
{% endif %}
</td>
<td>
{% if not target.stance.view %}
<a href="?target={{ target.resource_uri }}&akid={{ user.token }}&source={{ args.source }}&referring_akid={{ args.referring_akid }}" class="ak-button">Call</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
</div>