Add timestamp to reports.

This commit is contained in:
Ben Rog-Wilhelm 2024-03-31 19:08:13 -05:00
parent 5ab013fb4a
commit b766d376f4
4 changed files with 14 additions and 3 deletions

View file

@ -5375,3 +5375,14 @@ div[id^="reply-edit-"] li > p:first-child {
.volunteer_janitor_result_bad_3 {
background-color: hsl(0, 100%, 80%);
}
/***********************
Reports
************************/
.flaggers .flaggers-timestamp {
font-size: 0.8rem;
font-color: var(--gray-500);
}

View file

@ -7,7 +7,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 %}</li>
<li><a style="font-weight:bold" href="{{f.user.url}}">{{f.user.username}}</a>{% if f.reason %}: <span data-bs-toggle="tooltip" data-bs-placement="bottom" id="report_timestamp_{{f.id}}" onmouseover="timestamp('report_timestamp_{{f.id}}','{{f.created_utc}}')">{{f.realreason(v) | safe}}{% endif %}</span></li>
{% endfor %}
</ul>
</div>

View file

@ -189,7 +189,7 @@
<pre></pre>
<ul style="padding-left:20px; margin-bottom: 0;word-wrap:break-word">
{% for f in p.flags(v) %}
<li><a style="font-weight:bold" href="{{f.user.url}}">{{f.user.username}}</a>{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %}</li>
<li><a style="font-weight:bold" href="{{f.user.url}}">{{f.user.username}}</a>{% if f.reason %}: <span data-bs-toggle="tooltip" data-bs-placement="bottom" id="report_timestamp_{{f.id}}" onmouseover="timestamp('report_timestamp_{{f.id}}','{{f.created_utc}}')">{{f.realreason(v) | safe}}{% endif %}</span></li>
{% endfor %}
</ul>
</div>

View file

@ -70,7 +70,7 @@
<pre></pre>
<ul style="padding-left:20px; margin-bottom: 0;word-wrap:break-word">
{% for f in p.flags(v) %}
<li><a style="font-weight:bold" href="{{f.user.url}}">{{f.user.username}}</a>{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %}</li>
<li><a style="font-weight:bold" href="{{f.user.url}}">{{f.user.username}}</a>{% if f.reason %}: <span data-bs-toggle="tooltip" data-bs-placement="bottom" id="report_timestamp_{{f.id}}" onmouseover="timestamp('report_timestamp_{{f.id}}','{{f.created_utc}}')">{{f.realreason(v) | safe}}{% endif %}</span></li>
{% endfor %}
</ul>
</div>