Skip to content

Commit 75e86a0

Browse files
committed
Show small comment icon (instead of asterisk) when ballot has text
- Legacy-Id: 1939
1 parent 82d89cc commit 75e86a0

3 files changed

Lines changed: 14 additions & 55 deletions

File tree

ietf/templates/idrfc/doc_ballot.html

Lines changed: 8 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -31,75 +31,33 @@
3131
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3232
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3333
{% endcomment %}
34-
3534
{% load ietf_filters %}
36-
<table class="ballotTable">
37-
38-
<tr valign="top">
39-
<td class="left">
35+
<table class="ballotTable"><tr valign="top"><td class="left">
4036

4137
<p><span class="square" style="background:#c00000;"></span><b>Discuss</b><br/>
42-
{% for p in ballot.get_discuss %}
43-
{% if p.is_old_ad %}[{%endif%}{{p.ad_name}}{% if p.is_old_ad %}]{%endif%} {% if p.has_text %}*{% endif %} <br/>
44-
{% if p.old_positions %}<span class="was">(was {{p.old_positions|join:", "}})</span><br/>{%endif%}
45-
{% empty %}
46-
<i>none</i>
47-
{% endfor %}
48-
</p>
38+
{% with ballot.get_discuss as positions %}{% include "idrfc/doc_ballot_list.html" %}{% endwith %}</p>
4939

5040
<p><span class="square" style="background:#80ff80;"></span><b>Yes</b><br/>
51-
{% for p in ballot.get_yes %}
52-
{% if p.is_old_ad %}[{%endif%}{{p.ad_name}}{% if p.is_old_ad %}]{%endif%} {% if p.has_text %}*{% endif %} <br/>
53-
{% if p.old_positions %}<span class="was">(was {{p.old_positions|join:", "}})</span><br/>{%endif%}
54-
{% empty %}
55-
<i>none</i>
56-
{% endfor %}
57-
</p>
41+
{% with ballot.get_yes as positions %}{% include "idrfc/doc_ballot_list.html" %}{% endwith %}</p>
5842

5943
<p><span class="square" style="background:#80ff80;"></span><b>No Objection</b><br/>
60-
{% for p in ballot.get_no_objection %}
61-
{% if p.is_old_ad %}[{%endif%}{{p.ad_name}}{% if p.is_old_ad %}]{%endif%} {% if p.has_text %}*{% endif %} <br/>
62-
{% if p.old_positions %}<span class="was">(was {{p.old_positions|join:", "}})</span><br/>{%endif%}
63-
{% empty %}
64-
<i>none</i>
65-
{% endfor %}
66-
</p>
44+
{% with ballot.get_no_objection as positions %}{% include "idrfc/doc_ballot_list.html" %}{% endwith %}</p>
6745

6846
<p><span class="square" style="background:#c0c0c0;"></span><b>Abstain</b><br/>
69-
{% for p in ballot.get_abstain %}
70-
{% if p.is_old_ad %}[{%endif%}{{p.ad_name}}{% if p.is_old_ad %}]{%endif%} {% if p.has_text %}*{% endif %} <br/>
71-
{% if p.old_positions %}<span class="was">(was {{p.old_positions|join:", "}})</span><br/>{%endif%}
72-
{% empty %}
73-
<i>none</i>
74-
{% endfor %}
75-
</p>
47+
{% with ballot.get_abstain as positions %}{% include "idrfc/doc_ballot_list.html" %}{% endwith %}</p>
7648

7749
<p><span class="square" style="background:#c0c0c0;"></span><b>Recuse</b><br/>
78-
{% for p in ballot.get_recuse %}
79-
{% if p.is_old_ad %}[{%endif%}{{p.ad_name}}{% if p.is_old_ad %}]{%endif%} {% if p.has_text %}*{% endif %} <br/>
80-
{% if p.old_positions %}<span class="was">(was {{p.old_positions|join:", "}})</span><br/>{%endif%}
81-
{% empty %}
82-
<i>none</i>
83-
{% endfor %}
84-
</p>
50+
{% with ballot.get_recuse as positions %}{% include "idrfc/doc_ballot_list.html" %}{% endwith %}</p>
8551

8652
<p><span class="square" style="background:white;"></span><b>No Record</b><br/>
87-
{% for p in ballot.get_no_record %}
88-
{% if p.is_old_ad %}[{%endif%}{{p.ad_name}}{% if p.is_old_ad %}]{%endif%} {% if p.has_text %}*{% endif %} <br/>
89-
{% if p.old_positions %}<span class="was">(was {{p.old_positions|join:", "}})</span><br/>{%endif%}
90-
{% empty %}
91-
<i>none</i>
92-
{% endfor %}
93-
</p>
94-
53+
{% with ballot.get_no_record as positions %}{% include "idrfc/doc_ballot_list.html" %}{% endwith %}</p>
9554

9655
</td>
9756
<td class="right">
9857

9958
<h2 style="margin-top:12px;">Discusses and other comments</h2>
10059

10160
{% for pos in ballot.get_texts %}
102-
10361
<h2 class="ballot_ad">{{pos.ad_name|escape}}</h2>
10462

10563
{% ifequal pos.position "Discuss" %}
@@ -111,10 +69,5 @@ <h2 class="ballot_ad">{{pos.ad_name|escape}}</h2>
11169
<p><b>Comment ({{pos.comment_date}})</b></p>
11270
<pre>{{pos.comment_text|fill:"80"|escape }}</pre>
11371
{% endif %}
114-
11572
{% endfor %}
116-
117-
118-
</td>
119-
</tr>
120-
</table>
73+
</td></tr></table>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{% for p in positions %}
2+
{% if p.is_old_ad %}[{%endif%}{{p.ad_name}}{% if p.is_old_ad %}]{%endif%} {% if p.has_text %}<img src="/images/comment.png" width="14" height="12" style="novertical-align:middle;" alt="*"/>{% endif %} <br/>
3+
{% if p.old_positions %}<span class="was">(was {{p.old_positions|join:", "}})</span><br/>{%endif%}
4+
{% empty %}
5+
<i>none</i>
6+
{% endfor %}

static/images/comment.png

433 Bytes
Loading

0 commit comments

Comments
 (0)