Fixed issue where nosecount would 500

This commit is contained in:
Ed 2023-05-12 00:19:35 +02:00
parent 6609f436ae
commit 5a7cdf094a
1 changed files with 20 additions and 16 deletions

View File

@ -14,15 +14,17 @@
<h4 style="margin-top:1em;">{{o.room_name}}</h4> <h4 style="margin-top:1em;">{{o.room_name}}</h4>
<div class="grid people" style="padding-bottom:1em;"> <div class="grid people" style="padding-bottom:1em;">
{% for m in o.room_members %} {% for m in o.room_members %}
{% with person = orders[m] %} {% if m in orders %}
<div style="margin-bottom: 1em;"> {% with person = orders[m] %}
<div class="propic-container"> <div style="margin-bottom: 1em;">
<img class="propic propic-{{person.sponsorship}}" src="/res/propic/{{person.ans('propic') or 'default.png'}}" /> <div class="propic-container">
<img class="propic-flag" src="/res/flags/{{person.country.lower()}}.svg" /> <img class="propic propic-{{person.sponsorship}}" src="/res/propic/{{person.ans('propic') or 'default.png'}}" />
<img class="propic-flag" src="/res/flags/{{person.country.lower()}}.svg" />
</div>
<h5>{{person.ans('fursona_name')}}</h5>
</div> </div>
<h5>{{person.ans('fursona_name')}}</h5> {% endwith %}
</div> {% endif %}
{% endwith %}
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}
@ -36,15 +38,17 @@
<h3>{% if o.room_confirmed %}🔒{% endif %}{{o.room_name}}</h3> <h3>{% if o.room_confirmed %}🔒{% endif %}{{o.room_name}}</h3>
<div class="grid people" style="padding-bottom:1em;"> <div class="grid people" style="padding-bottom:1em;">
{% for m in o.room_members %} {% for m in o.room_members %}
{% with person = orders[m] %} {% if m in orders %}
<div style="margin-bottom: 1em;"> {% with person = orders[m] %}
<div class="propic-container"> <div style="margin-bottom: 1em;">
<img class="propic propic-{{person.sponsorship}}" src="/res/propic/{{person.ans('propic') or 'default.png'}}" /> <div class="propic-container">
<img class="propic-flag" src="/res/flags/{{person.country.lower()}}.svg" /> <img class="propic propic-{{person.sponsorship}}" src="/res/propic/{{person.ans('propic') or 'default.png'}}" />
<img class="propic-flag" src="/res/flags/{{person.country.lower()}}.svg" />
</div>
<h5>{{person.ans('fursona_name')}}</h5>
</div> </div>
<h5>{{person.ans('fursona_name')}}</h5> {% endwith %}
</div> {% endif %}
{% endwith %}
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}