Also revamp the admin index

This commit is contained in:
Jonas Schäfer
2021-01-28 18:52:44 +01:00
parent 205b0173a7
commit e58a3176ac
4 changed files with 42 additions and 29 deletions

View File

@@ -132,4 +132,9 @@ licensed under the terms of the Apache 2.0 License -->
<g><rect fill="none" height="24" width="24" /><rect fill="none" height="24" width="24" /></g>
<g><g><path d="M17,11c0.34,0,0.67,0.04,1,0.09V7.58c0-0.8-0.47-1.52-1.2-1.83l-5.5-2.4c-0.51-0.22-1.09-0.22-1.6,0l-5.5,2.4 C3.47,6.07,3,6.79,3,7.58v3.6c0,4.54,3.2,8.79,7.5,9.82c0.55-0.13,1.08-0.32,1.6-0.55C11.41,19.47,11,18.28,11,17 C11,13.69,13.69,11,17,11z" /><path d="M17,13c-2.21,0-4,1.79-4,4c0,2.21,1.79,4,4,4s4-1.79,4-4C21,14.79,19.21,13,17,13z M17,14.38c0.62,0,1.12,0.51,1.12,1.12 s-0.51,1.12-1.12,1.12s-1.12-0.51-1.12-1.12S16.38,14.38,17,14.38z M17,19.75c-0.93,0-1.74-0.46-2.24-1.17 c0.05-0.72,1.51-1.08,2.24-1.08s2.19,0.36,2.24,1.08C18.74,19.29,17.93,19.75,17,19.75z" /></g></g>
</symbol>
<!-- from: content/link/materialiconsround/24px.svg -->
<symbol id="icon-link" viewBox="0 0 24 24">
<path d="M0 0h24v24H0V0z" fill="none" />
<path d="M17 7h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c1.65 0 3 1.35 3 3s-1.35 3-3 3h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c2.76 0 5-2.24 5-5s-2.24-5-5-5zm-9 5c0 .55.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1H9c-.55 0-1 .45-1 1zm2 3H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h3c.55 0 1-.45 1-1s-.45-1-1-1H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h3c.55 0 1-.45 1-1s-.45-1-1-1z" />
</symbol>
</defs></svg>

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -1,37 +1,41 @@
{% extends "admin_app.html" %}
{% set body_id = "home" %}
{% block content %}
<h1>{% trans %}Welcome to the administration dashboard!{% endtrans %}</h1>
<h1>{% trans %}Welcome to the admin panel!{% endtrans %}</h1>
<p>{% trans user_name=user_info.display_name %}At your service, {{ user_name }}.{% endtrans %}</p>
<nav class="welcome">
<ul>
<li>
<h2>{% trans %}Users{% endtrans %}</h2>
{#- -#}
<p>{% trans %}Create password reset links or delete users.{% endtrans %}</p>
{#- -#}
{# <img aria-hidden="true" src="{{ url_for("static", filename="img/illus-profile.svg") }}"> #}
{#- -#}
<div><a class="button primary" href="{{ url_for(".users") }}">{% trans %}Users{% endtrans %}</a></div>
<div>{% call standard_button("people", url_for(".users"), class="primary") %}{% trans %}Manage users{% endtrans %}{% endcall %}</div>
{#- -#}
</li>
<li>
<h2>{% trans %}Circles{% endtrans %}</h2>
{#- -#}
<p>{% trans %}Create and manage social circles represented on your service.{% endtrans %}</p>
{#- -#}
<div><a class="button primary" href="{{ url_for(".circles") }}">{% trans %}Circles{% endtrans %}</a></div>
<div>{% call standard_button("groups", url_for(".circles"), class="primary") %}{% trans %}Manage circles{% endtrans %}{% endcall %}</div>
{#- -#}
</li>
<li>
<h2>{% trans %}Invitations{% endtrans %}</h2>
{#- -#}
<p>{% trans %}Create, revoke or copy invitations.{% endtrans %}</p>
{#- -#}
<div><a class="button primary" href="{{ url_for(".invitations") }}">{% trans %}Invitations{% endtrans %}</a></div>
<div>{% call standard_button("link", url_for(".invitations"), class="primary") %}{% trans %}Manage invitations{% endtrans %}{% endcall %}</div>
{#- -#}
</li>
<li>
{#- -#}
<p>{% trans %}Go back to your users web portal page.{% endtrans %}</p>
{#- -#}
<div><a class="button secondary" href="{{ url_for("user.index") }}">{% trans %}Exit Admin Panel{% endtrans %}</a></div>
<div>{% call standard_button("logout", url_for("user.index"), class="secondary") %}{% trans %}Exit admin panel{% endtrans %}{% endcall %}</div>
{#- -#}
</li>
</ul>

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2021-01-28 18:47+0100\n"
"POT-Creation-Date: 2021-01-28 18:53+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -264,6 +264,7 @@ msgid "Admin area"
msgstr ""
#: snikket_web/templates/admin_circles.html:4
#: snikket_web/templates/admin_home.html:23
msgid "Manage circles"
msgstr ""
@@ -482,7 +483,7 @@ msgid "Link"
msgstr ""
#: snikket_web/templates/admin_edit_invite.html:22
#: snikket_web/templates/admin_home.html:20
#: snikket_web/templates/admin_home.html:19
msgid "Circles"
msgstr ""
@@ -534,45 +535,51 @@ msgid ""
"channel."
msgstr ""
#: snikket_web/templates/admin_home.html:3
msgid "Welcome to the administration dashboard!"
#: snikket_web/templates/admin_home.html:4
msgid "Welcome to the admin panel!"
msgstr ""
#: snikket_web/templates/admin_home.html:4
#: snikket_web/templates/admin_home.html:5
#, python-format
msgid "At your service, %(user_name)s."
msgstr ""
#: snikket_web/templates/admin_home.html:9
msgid "Create password reset links or delete users."
msgstr ""
#: snikket_web/templates/admin_home.html:13
msgid "Users"
msgstr ""
#: snikket_web/templates/admin_home.html:18
msgid "Create and manage social circles represented on your service."
#: snikket_web/templates/admin_home.html:11
msgid "Create password reset links or delete users."
msgstr ""
#: snikket_web/templates/admin_home.html:25
msgid "Create, revoke or copy invitations."
#: snikket_web/templates/admin_home.html:15
#: snikket_web/templates/admin_users.html:4
msgid "Manage users"
msgstr ""
#: snikket_web/templates/admin_home.html:21
msgid "Create and manage social circles represented on your service."
msgstr ""
#: snikket_web/templates/admin_home.html:27
msgid "Invitations"
msgstr ""
#: snikket_web/templates/admin_home.html:32
#: snikket_web/templates/admin_home.html:29
msgid "Create, revoke or copy invitations."
msgstr ""
#: snikket_web/templates/admin_home.html:31
#: snikket_web/templates/admin_invites.html:8
msgid "Manage invitations"
msgstr ""
#: snikket_web/templates/admin_home.html:36
msgid "Go back to your users web portal page."
msgstr ""
#: snikket_web/templates/admin_home.html:34
msgid "Exit Admin Panel"
msgstr ""
#: snikket_web/templates/admin_invites.html:8
msgid "Manage invitations"
#: snikket_web/templates/admin_home.html:38
msgid "Exit admin panel"
msgstr ""
#: snikket_web/templates/admin_invites.html:10
@@ -614,10 +621,6 @@ msgstr ""
msgid "Destroy link"
msgstr ""
#: snikket_web/templates/admin_users.html:4
msgid "Manage users"
msgstr ""
#: snikket_web/templates/admin_users.html:25
#, python-format
msgid "Show debug information for %(user_name)s"

View File

@@ -24,3 +24,4 @@ social/person_remove:remove_user
navigation/close:close
image/edit:edit
action/admin_panel_settings:admin
content/link:link