2024-02-06 20:31:12 -08:00
|
|
|
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
|
|
|
|
{% extends 'themes/' + theme() + '/base.html' %}
|
|
|
|
{% else %}
|
|
|
|
{% extends "base.html" %}
|
2024-12-10 03:16:52 -08:00
|
|
|
{% endif %}
|
2023-12-31 17:49:15 -08:00
|
|
|
{% from 'bootstrap/form.html' import render_field %}
|
2024-04-14 01:05:40 -07:00
|
|
|
{% set active_child = 'admin_users' %}
|
2023-12-31 17:49:15 -08:00
|
|
|
|
|
|
|
{% block app_content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col col-login mx-auto">
|
2024-04-14 01:05:40 -07:00
|
|
|
<h1>{{ _('Edit %(user_name)s (%(display_name)s)', user_name=user.user_name, display_name=user.display_name()) }}</h1>
|
2023-12-31 17:49:15 -08:00
|
|
|
<form method="post" enctype="multipart/form-data" id="add_local_user_form">
|
|
|
|
{{ form.csrf_token() }}
|
2024-03-22 11:08:28 -07:00
|
|
|
{{ user.about_html|safe if user.about_html }}
|
2024-08-22 16:14:47 -07:00
|
|
|
<p>Created: {{ arrow.get(user.created).humanize(locale=locale) }}</p>
|
|
|
|
<p>Last active: {{ arrow.get(user.last_seen).humanize(locale=locale) }}</p>
|
2024-03-22 11:08:28 -07:00
|
|
|
<p>Email: <a href="mailto:{{ user.email }}">{{ user.email }}</a></p>
|
|
|
|
<p>Matrix: {{ user.matrix_user_id if user.matrix_user_id }}</p>
|
2023-12-31 17:49:15 -08:00
|
|
|
{% if user.avatar_id %}
|
|
|
|
<img class="user_icon_big rounded-circle" src="{{ user.avatar_image() }}" width="120" height="120" />
|
|
|
|
{% endif %}
|
|
|
|
{% if user.cover_id %}
|
|
|
|
<a href="{{ user.cover_image() }}"><img class="user_icon_big" src="{{ user.cover_image() }}" style="width: 300px; height: auto;" /></a>
|
|
|
|
{% endif %}
|
|
|
|
{{ render_field(form.bot) }}
|
2024-02-18 18:01:53 -08:00
|
|
|
{{ render_field(form.verified) }}
|
|
|
|
{{ render_field(form.banned) }}
|
2024-12-01 18:03:16 -08:00
|
|
|
{{ render_field(form.ban_posts) }}
|
|
|
|
{{ render_field(form.ban_comments) }}
|
2024-03-22 11:08:28 -07:00
|
|
|
<p>receive newsletter: {{ user.newsletter }}</p>
|
2024-06-28 08:04:06 -07:00
|
|
|
{{ render_field(form.hide_nsfw) }}
|
|
|
|
{{ render_field(form.hide_nsfl) }}
|
2024-03-22 11:08:28 -07:00
|
|
|
<p>searchable: {{ user.searchable }}</p>
|
|
|
|
<p>indexable: {{ user.indexable }}</p>
|
2024-02-27 13:27:31 -08:00
|
|
|
{{ render_field(form.role) }}
|
2024-03-22 11:08:28 -07:00
|
|
|
{{ render_field(form.remove_avatar) }}
|
|
|
|
{{ render_field(form.remove_banner) }}
|
2023-12-31 17:49:15 -08:00
|
|
|
{{ render_field(form.submit) }}
|
|
|
|
</form>
|
|
|
|
<p class="mt-4">
|
|
|
|
{% if not user.is_local() %}
|
2024-06-04 18:21:41 -07:00
|
|
|
<a href="{{ user.public_url() }}" class="btn btn-primary">View original profile</a>
|
2023-12-31 17:49:15 -08:00
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-04-14 01:05:40 -07:00
|
|
|
<hr />
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
{% include 'admin/_nav.html' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
2024-06-28 04:22:15 -07:00
|
|
|
{% endblock %}
|