forked from
smokesignal.events/smokesignal
i18n+filtering fork - fluent-templates v2
1{% extends "base." + current_locale + ".html" %}
2{% include 'pagination.html' %}
3{% block title %}{{ t("admin-handles") }} - {{ t("admin-title") }}{% endblock %}
4{% block head %}{% endblock %}
5{% block content %}
6<section class="section">
7 <div class="container">
8 <nav class="breadcrumb" aria-label="breadcrumbs">
9 <ul>
10 <li><a href="/admin">{{ t("breadcrumb-admin") }}</a></li>
11 <li class="is-active"><a href="#" aria-current="page">{{ t("admin-handles") }}</a></li>
12 </ul>
13 </nav>
14 </div>
15</section>
16<section class="section">
17 <div class="container">
18 <div class="content">
19 <h1 class="title">{{ t("admin-handles-title", count=total_count) }}</h1>
20 <p class="subtitle">{{ t("admin-handles-subtitle") }}</p>
21
22 <table class="table is-fullwidth">
23 <thead>
24 <tr>
25 <th>{{ t("admin-handles-col-did") }}</th>
26 <th>{{ t("admin-handles-col-handle") }}</th>
27 <th>{{ t("admin-handles-col-pds") }}</th>
28 <th>{{ t("admin-handles-col-language") }}</th>
29 <th>{{ t("admin-handles-col-timezone") }}</th>
30 <th>{{ t("admin-handles-col-updated") }}</th>
31 <th>{{ t("admin-handles-col-actions") }}</th>
32 </tr>
33 </thead>
34 <tbody>
35 {% for handle in handles %}
36 <tr>
37 <td><a href="/{{ handle.did }}">{{ handle.did }}</a></td>
38 <td>{{ handle.handle }}</td>
39 <td>{{ handle.pds }}</td>
40 <td>{{ handle.language }}</td>
41 <td>{{ handle.tz }}</td>
42 <td>{{ handle.updated_at }}</td>
43 <td>
44 <button class="button is-danger is-small"
45 hx-post="/admin/handles/nuke/{{ handle.did }}"
46 hx-confirm="{{ t('admin-nuke-confirm') }}"
47 hx-target="body"
48 data-loading-disable
49 data-loading-class="is-loading">
50 {{ t("admin-nuke-identity") }}
51 </button>
52 </td>
53 </tr>
54 {% endfor %}
55 </tbody>
56 </table>
57
58 {% if pagination %}
59 {{ view_pagination((canonical_url ~ "?"), pagination) }}
60 {% endif %}
61 </div>
62 </div>
63</section>
64{% endblock %}