aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/templates/user.html
blob: ecd5ba94f64128454920fd454df297cf728a4f74 (plain) (blame)
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
<!--
SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me>

SPDX-License-Identifier: BSD-3-Clause
-->
{% extends "base.html" %}

{% set title = "User" %}
{% from "bootstrap5/form.html" import render_form %}

{% block content %}
  <h1 class="mb-4">User</h1>
  <section class="mb-4" aria-labelledby="account-heading">
    <h2 class="h4" id="account-heading">Account</h2>
    <dl class="row">
      <dt class="col-sm-3">Username</dt>
      <dd class="col-sm-9">
        {{ current_user.username }}
      </dd>
      <dt class="col-sm-3">Remote address</dt>
      <dd class="col-sm-9">
        <code>{{ remote_address or "Unavailable" }}</code>
      </dd>
    </dl>
    <p class="text-body-secondary">
      The remote address is the client IP seen by the application for this request.
      If it shows your reverse proxy instead, check the
      <code>PROXY_FIX_TRUSTED_HOPS</code> configuration.
    </p>
  </section>
  <section aria-labelledby="password-heading">
    <h2 class="h4" id="password-heading">Change password</h2>
    <div class="col-12 col-sm-8 col-md-6 col-lg-4">{{ render_form(form) }}</div>
  </section>
{% endblock %}