diff options
Diffstat (limited to '')
| -rw-r--r-- | webmentions_ssg/templates/user.html | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/webmentions_ssg/templates/user.html b/webmentions_ssg/templates/user.html new file mode 100644 index 0000000..ecd5ba9 --- /dev/null +++ b/webmentions_ssg/templates/user.html @@ -0,0 +1,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 %} |
