1.2 KiB · text History 3d71adc
{# A flagged post as a Focus card. #}
<article id="flags-{{ item.post_id }}" aria-label="Post #{{ item.post_number }} in {{ item.topic_title }}"
         class="flex min-w-0 flex-col gap-2 rounded-box border p-3 shadow-sm
                {% if item.resolved %}border-success/40 bg-base-200/60 opacity-70{% elif item.hidden %}border-error/60 bg-base-100{% else %}border-base-300 bg-base-100{% endif %}">
  <header class="flex items-start justify-between gap-2">
    <div class="min-w-0">
      <a href="/t/{{ item.topic_id }}#post-{{ item.post_number }}" class="block truncate font-semibold hover:text-primary">#{{ item.post_number }} in {{ item.topic_title }}</a>
      {% include "admin/_author_glance.html" %}
    </div>
    <div class="flex flex-col items-end gap-1">{% include "admin/_flag_counts.html" %}</div>
  </header>
  <div class="prose prose-sm max-h-32 overflow-hidden rounded-field bg-base-200 p-2 text-sm">{{ item.cooked | safe }}</div>
  <div class="flex flex-wrap gap-1">{% for r in item.reasons %}<span class="badge badge-sm">{{ r[0] }} ×{{ r[1] }}</span>{% endfor %}</div>
  {% include "admin/_flag_list.html" %}
  <footer class="border-t border-base-300 pt-2">{% include "admin/_flag_actions.html" %}</footer>
</article>