~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/templates/users.html -rw-r--r-- 1.3 KiB
72548bd7Drew DeVault API: Updates per core-go auth changes 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends "meta.html" %}
{% block title %}
<title>User admin - {{cfg("sr.ht", "site-name")}} meta</title>
{% endblock %}
{% block content %}
<div class="row">
  <form class="col-md-12">
    <h3>User administration</h3>
    <div class="form-group">
      <input
        type="text"
        class="form-control{% if search_error %} is-invalid{% endif %}"
        name="search"
        placeholder="Search by username or email"
        value="{{search if search else ""}}" />
      {% if search_error %}
        <div class="invalid-feedback">{{ search_error }}</div>
      {% endif %}
    </div>
    <div class="event-list">
      {% for user in users %}
      <div class="event">
        <h3>
          <a href="{{url_for(".user_by_username_GET", username=user.username)}}">
            ~{{user.username}}
          </a>
        </h3>
        <dl class="row">
          <dt class="col-md-3">Email</dt>
          <dd class="col-md-9">
            <a href="mailto:{{user.email}}">{{user.email}}</a>
          </dd>
          <dt class="col-md-3">Registered</dt>
          <dd class="col-md-9">{{user.created | date}}</dd>
          <dt class="col-md-3">User type</dt>
          <dd class="col-md-9">{{user.user_type.value}}</dd>
        </dl>
      </div>
      {% endfor %}
    </div>
    {{pagination()}}
  </form>
</div>
{% endblock %}