1.1 KiB · text History 263b40b
{% extends "root.html" %}

{% block content %}
<div class="space-y-4 text-left">
  <div class="flex flex-wrap items-center justify-between gap-3"><h1 class="text-3xl font-bold">Reactions</h1>{% set toggle_base = "/reactions" %}{% set view_mode = "classic" %}{% include "forum/_view_toggle.html" %}</div>
  <p class="opacity-70 text-sm">Topics with reactions, most recently reacted first.</p>

  {% if topics|length == 0 %}
    <p class="opacity-70">No reactions yet.</p>
  {% else %}
  <ul class="space-y-2">
    {% for t in topics %}
    <li class="card bg-base-200 border border-base-300 p-3 flex flex-row items-center justify-between gap-3">
      <a href="/t/{{ t.topic_id }}" class="font-medium link link-hover truncate">{{ t.title }}</a>
      <span class="flex items-center gap-3 shrink-0 text-sm opacity-70">
        <span class="badge badge-ghost">{{ t.count }} reaction{% if t.count != 1 %}s{% endif %}</span>
        <span class="text-xs" title="{{ t.last_abs }}">{{ t.last }}</span>
      </span>
    </li>
    {% endfor %}
  </ul>
  {% endif %}
</div>
{% endblock %}