Hide names on reports in ghost threads.

remotes/1693045480750635534/spooky-22
Snakes 2022-06-22 03:37:09 -04:00
parent 79ced3816c
commit b561ca413c
2 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@
<pre></pre>
<ul style="padding-left:20px; margin-bottom: 0;word-wrap:break-word">
{% for f in c.flags(v) %}
<li><a style="font-weight:bold" href="{{f.user.url}}">{{f.user.username}}</a>{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %} {% if v and v.admin_level > 1 %}<a role="button" onclick="post_toast(this,'/del_report/comment/{{f.comment_id}}/{{f.user_id}}')">[remove]</a>{% endif %}</li>
<li>{% if not c.ghost %}<a style="font-weight:bold" href="{{f.user.url}}">{{f.user.username}}</a>{% else %}👻{% endif %}{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %} {% if v and v.admin_level > 1 %}<a role="button" onclick="post_toast(this,'/del_report/comment/{{f.comment_id}}/{{f.user_id}}')">[remove]</a>{% endif %}</li>
{% endfor %}
</ul>
</div>

View File

@ -1,5 +1,5 @@
{%- macro plural(value, suffix='s') -%}
{%- if value > 1 or value < -1 -%}
{%- if value != 1 -%}
{{ suffix }}
{%- endif -%}
{%- endmacro -%}