2024-02-07 17:31:12 +13:00
|
|
|
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
|
|
|
|
{% extends 'themes/' + theme() + '/base.html' %}
|
|
|
|
{% else %}
|
|
|
|
{% extends "base.html" %}
|
2024-12-10 12:16:52 +01:00
|
|
|
{% endif %}
|
2024-01-01 14:49:15 +13:00
|
|
|
{% from 'bootstrap/form.html' import render_field %}
|
2024-04-14 20:05:40 +12:00
|
|
|
{% set active_child = 'admin_users' %}
|
2024-01-01 14:49:15 +13:00
|
|
|
|
|
|
|
{% block app_content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col col-login mx-auto">
|
2024-04-14 20:05:40 +12:00
|
|
|
<h1>{{ _('Edit %(user_name)s (%(display_name)s)', user_name=user.user_name, display_name=user.display_name()) }}</h1>
|
2024-01-01 14:49:15 +13:00
|
|
|
<form method="post" enctype="multipart/form-data" id="add_local_user_form">
|
|
|
|
{{ form.csrf_token() }}
|
2024-03-23 07:08:28 +13:00
|
|
|
{{ user.about_html|safe if user.about_html }}
|
2024-08-23 11:14:47 +12: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-23 07:08:28 +13:00
|
|
|
<p>Email: <a href="mailto:{{ user.email }}">{{ user.email }}</a></p>
|
|
|
|
<p>Matrix: {{ user.matrix_user_id if user.matrix_user_id }}</p>
|
2024-01-01 14:49:15 +13: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-19 15:01:53 +13:00
|
|
|
{{ render_field(form.verified) }}
|
|
|
|
{{ render_field(form.banned) }}
|
2024-12-02 15:03:16 +13:00
|
|
|
{{ render_field(form.ban_posts) }}
|
|
|
|
{{ render_field(form.ban_comments) }}
|
2024-03-23 07:08:28 +13:00
|
|
|
<p>receive newsletter: {{ user.newsletter }}</p>
|
2024-06-28 15:04:06 +00:00
|
|
|
{{ render_field(form.hide_nsfw) }}
|
|
|
|
{{ render_field(form.hide_nsfl) }}
|
2024-03-23 07:08:28 +13:00
|
|
|
<p>searchable: {{ user.searchable }}</p>
|
|
|
|
<p>indexable: {{ user.indexable }}</p>
|
2024-02-28 10:27:31 +13:00
|
|
|
{{ render_field(form.role) }}
|
2024-03-23 07:08:28 +13:00
|
|
|
{{ render_field(form.remove_avatar) }}
|
|
|
|
{{ render_field(form.remove_banner) }}
|
2024-01-01 14:49:15 +13:00
|
|
|
{{ render_field(form.submit) }}
|
|
|
|
</form>
|
|
|
|
<p class="mt-4">
|
|
|
|
{% if not user.is_local() %}
|
2024-06-05 13:21:41 +12:00
|
|
|
<a href="{{ user.public_url() }}" class="btn btn-primary">View original profile</a>
|
2024-01-01 14:49:15 +13:00
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-04-14 20:05:40 +12:00
|
|
|
<hr />
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
{% include 'admin/_nav.html' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
2024-06-28 13:22:15 +02:00
|
|
|
{% endblock %}
|