mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
51 lines
No EOL
2.2 KiB
HTML
51 lines
No EOL
2.2 KiB
HTML
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
|
|
{% extends 'themes/' + theme() + '/base.html' %}
|
|
{% else %}
|
|
{% extends "base.html" %}
|
|
{% endif %} %}
|
|
{% from 'bootstrap/form.html' import render_field %}
|
|
|
|
{% block app_content %}
|
|
<div class="row">
|
|
<div class="col">
|
|
{% include 'admin/_nav.html' %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col col-login mx-auto">
|
|
<h3>{{ _('Edit %(user_name)s (%(display_name)s)', user_name=user.user_name, display_name=user.display_name()) }}</h3>
|
|
<form method="post" enctype="multipart/form-data" id="add_local_user_form">
|
|
{{ form.csrf_token() }}
|
|
{{ user.about_html|safe if user.about_html }}
|
|
<p>Email: <a href="mailto:{{ user.email }}">{{ user.email }}</a></p>
|
|
<p>Matrix: {{ user.matrix_user_id if user.matrix_user_id }}</p>
|
|
{% 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) }}
|
|
{{ render_field(form.verified) }}
|
|
{{ render_field(form.banned) }}
|
|
<p>receive newsletter: {{ user.newsletter }}</p>
|
|
<p>view nsfw: {{ user.nsfw }}</p>
|
|
<p>view nsfl: {{ user.nsfl }}</p>
|
|
<p>searchable: {{ user.searchable }}</p>
|
|
<p>indexable: {{ user.indexable }}</p>
|
|
{{ render_field(form.role) }}
|
|
{{ render_field(form.remove_avatar) }}
|
|
{{ render_field(form.remove_banner) }}
|
|
{{ render_field(form.submit) }}
|
|
</form>
|
|
<p class="mt-4">
|
|
{% if not user.is_local() %}
|
|
<a href="{{ user.profile_id() }}" class="btn btn-primary">View original profile</a>
|
|
{% endif %}
|
|
<a href="" class="btn btn-warning confirm_first">Ban</a>
|
|
<a href="" class="btn btn-warning confirm_first">Ban + Purge</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |