You've already forked snikket-web-portal
58 lines
2.2 KiB
HTML
58 lines
2.2 KiB
HTML
{% extends "app.html" %}
|
|
{% from "library.j2" import clipboard_button, standard_button %}
|
|
{% block head_lead %}
|
|
{{ super() }}
|
|
{% include "copy-snippet.html" %}
|
|
{% endblock %}
|
|
{% block content %}
|
|
<h1>{% trans %}Welcome!{% endtrans %}</h1>
|
|
<p>{% trans user_name=user_info.display_name %}Welcome home, {{ user_name }}.{% endtrans %}</p>
|
|
<nav class="welcome">
|
|
<ul>
|
|
<li class="wide">
|
|
<h2>{% trans %}Your profile{% endtrans %}</h2>
|
|
<div class="profile-card">
|
|
<div class="picture" aria-label="Your profile picture">{% call avatar(user_info.address, user_info.avatar_hash ) %}{% endcall %}</div>
|
|
<div class="details">
|
|
<div class="display-name">{{ user_info.display_name | default(user_info.username) }}</div>
|
|
<div class="address">
|
|
<input value="{{ user_info.address }}">
|
|
{% call clipboard_button(user_info.address) %}{% trans %}Copy address{% endtrans %}{% endcall %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{#- -#}
|
|
{# <p>{% trans %}Change your display name, set a profile picture and control visibility of your personal data to others.{% endtrans %}</p> #}
|
|
{#- -#}
|
|
{# <img aria-hidden="true" src="{{ url_for("static", filename="img/illus-profile.svg") }}"> #}
|
|
{#- -#}
|
|
<div>{% call standard_button("edit", url_for(".profile"), class="primary") %}{% trans %}Edit profile{% endtrans %}{% endcall %}</div>
|
|
{#- -#}
|
|
</li>
|
|
<li>
|
|
{#- -#}
|
|
<p>{% trans %}If need be, you can change your password here.{% endtrans %}</p>
|
|
{#- -#}
|
|
<div><a class="button primary" href="{{ url_for(".change_pw") }}">{% trans %}Change password{% endtrans %}</a></div>
|
|
{#- -#}
|
|
</li>
|
|
{% if user_info.is_admin %}
|
|
<li>
|
|
{#- -#}
|
|
<p>{% trans %}Manage users, invitations and circles of your Snikket service.{% endtrans %}</p>
|
|
{#- -#}
|
|
<div><a class="button primary" href="{{ url_for("admin.index") }}">{% trans %}Admin panel{% endtrans %}</a></div>
|
|
{#- -#}
|
|
</li>
|
|
{% endif %}
|
|
<li>
|
|
{#- -#}
|
|
<p>{% trans %}Exit the Snikket Web Portal, without logging out your other devices.{% endtrans %}</p>
|
|
{#- -#}
|
|
<div><a class="button secondary" href="{{ url_for(".logout") }}">{% trans %}Log out{% endtrans %}</a></div>
|
|
{#- -#}
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
{% endblock %}
|