You've already forked snikket-web-portal
- Avoid fighting import cycles using a factory function - Collapse useless subpackages into simple modules - Move flask plugins / infrastructure in own module - Refactor how blueprints are used to localize information about URL routing to app factory
25 lines
1023 B
HTML
25 lines
1023 B
HTML
{% extends "app.html" %}
|
|
{% block content %}
|
|
<h1>{% trans %}Welcome!{% endtrans %}</h1>
|
|
<p>{% trans user_name=user_info.display_name %}Welcome home, {{ user_name }}.{% endtrans %}</p>
|
|
<div class="welcome-cards">
|
|
<a class="card" href="{{ url_for('.profile') }}">
|
|
<h2>{% trans %}Update profile{% endtrans %}</h2>
|
|
<p>{% trans %}Change display name, set avatar and configure visibility of your personal data to others.{% endtrans %}</p>
|
|
</a>
|
|
<a class="card" href="{{ url_for('.change_pw') }}">
|
|
<h2>{% trans %}Change password{% endtrans %}</h2>
|
|
</a>
|
|
{% if user_info.is_admin %}
|
|
<a class="card" href="{{ url_for('admin.index') }}">
|
|
<h2>{% trans %}Admin dashboard{% endtrans %}</h2>
|
|
<p>{% trans %}Manage users and invitations of this Snikket instance.{% endtrans %}</p>
|
|
</a>
|
|
{% endif %}
|
|
<a class="card" href="{{ url_for('.logout') }}">
|
|
<h2>{% trans %}Log out{% endtrans %}</h2>
|
|
<p>{% trans %}Exit the Snikket Web Portal, without logging out your other devices.{% endtrans %}</p>
|
|
</a>
|
|
</div>
|
|
{% endblock %}
|