Heavily customized version of smokesignal - https://whtwnd.com/kayrozen.com/3lpwe4ymowg2t
1{% extends "base." + current_locale + ".html" %}
2{% include 'pagination.html' %}
3{% block title %}{{ t("admin-events") }} - {{ 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-events") }}</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-events-title", count=total_count) }}</h1>
20 <p class="subtitle">{{ t("admin-events-subtitle") }}</p>
21
22 <div class="box mb-5">
23 <h2 class="title is-4">{{ t("admin-import-event") }}</h2>
24 <form action="/admin/events/import" method="post">
25 <div class="field">
26 <label class="label" for="importAtUriInput">{{ t("admin-at-uri-label") }}</label>
27 <div class="control has-icons-left">
28 <input class="input" type="text" id="importAtUriInput" name="aturi" required="required"
29 placeholder="{{ t('admin-at-uri-placeholder') }}">
30 <span class="icon is-small is-left">
31 <i class="fas fa-link"></i>
32 </span>
33 </div>
34 <p class="help">{{ t("admin-at-uri-help") }}</p>
35 </div>
36 <div class="field">
37 <div class="control">
38 <button type="submit" class="button is-primary">{{ t("admin-import-button") }}</button>
39 </div>
40 </div>
41 </form>
42 </div>
43
44 <table class="table is-fullwidth">
45 <thead>
46 <tr>
47 <th>{{ t("admin-events-col-name") }}</th>
48 <th>{{ t("admin-events-col-updated") }}</th>
49 <th>{{ t("admin-events-col-actions") }}</th>
50 </tr>
51 </thead>
52 <tbody>
53 {% for event in events %}
54 <tr>
55 <td><a href="/admin/event?aturi={{ event.aturi }}">{{ event.aturi }}</a></td>
56 <td>{{ event.updated_at }}</td>
57 <td>
58 <div class="buttons">
59 <a href="/admin/event?aturi={{ event.aturi }}" class="button is-small is-info">
60 {{ t("view") }}
61 </a>
62 </div>
63 </td>
64 </tr>
65 {% endfor %}
66 </tbody>
67 </table>
68
69 {% if pagination %}
70 {{ view_pagination((canonical_url ~ "?"), pagination) }}
71 {% endif %}
72 </div>
73 </div>
74</section>
75{% endblock %}