diff --git a/snikket_web/scss/app.scss b/snikket_web/scss/app.scss
index 22c89b2..13d4140 100644
--- a/snikket_web/scss/app.scss
+++ b/snikket_web/scss/app.scss
@@ -992,19 +992,18 @@ div.profile-card {
}
}
-/* clipboard button */
+/* clipboard and share buttons */
-.copy-to-clipboard {
+.copy-to-clipboard, .share-button {
cursor: pointer;
font-style: normal;
text-decoration: none;
}
-body.no-copy .copy-to-clipboard {
+body.no-copy .copy-to-clipboard, body.no-share .share-button {
display: none !important;
}
-
/* magic */
pre.guru-meditation {
diff --git a/snikket_web/static/img/icons.svg b/snikket_web/static/img/icons.svg
index f2a0c88..01569a6 100644
--- a/snikket_web/static/img/icons.svg
+++ b/snikket_web/static/img/icons.svg
@@ -193,4 +193,9 @@ licensed under the terms of the Apache 2.0 License -->
+
+
+
+
+
diff --git a/snikket_web/templates/admin_edit_invite.html b/snikket_web/templates/admin_edit_invite.html
index 2b20998..a66690c 100644
--- a/snikket_web/templates/admin_edit_invite.html
+++ b/snikket_web/templates/admin_edit_invite.html
@@ -1,5 +1,5 @@
{% extends "admin_app.html" %}
-{% from "library.j2" import showuri, form_button, standard_button, extract_circle_name, invite_type_description %}
+{% from "library.j2" import showuri, form_button, standard_button, extract_circle_name, invite_type_name, invite_type_description %}
{% block head_lead %}
{{ super() }}
{% include "copy-snippet.html" %}
@@ -13,9 +13,10 @@
{% trans %}Valid until{% endtrans %}
{{ invite.expires | format_date }}
- {% call showuri(invite.landing_page, id_="link-field") %}{% endcall %}
+ {% call showuri(invite.landing_page, id_="link-field") %}{% trans %}Invitation to Snikket{% endtrans %}{% endcall %}
{% trans %}Invitation type{% endtrans %}
- {% call invite_type_description(invite) %}{% endcall %}
+ {% set invite_type = invite.reusable and "group" or "account" %}
+ {% call invite_type_name(invite_type) %}{% endcall %}
{%- set ngroups = invite.group_ids | length -%}
{%- if ngroups > 1 -%}
{#- not supported via the web UI, but we should still display it properly -#}
diff --git a/snikket_web/templates/admin_invites.html b/snikket_web/templates/admin_invites.html
index 34d5eeb..d4a8438 100644
--- a/snikket_web/templates/admin_invites.html
+++ b/snikket_web/templates/admin_invites.html
@@ -1,5 +1,5 @@
{% extends "admin_app.html" %}
-{% from "library.j2" import action_button, icon, clipboard_button, form_button, custom_form_button, extract_circle_name, invite_type_name, invite_type_description %}
+{% from "library.j2" import action_button, icon, clipboard_button, share_button, form_button, custom_form_button, extract_circle_name, invite_type_name, invite_type_description %}
{% block head_lead %}
{{ super() }}
{% include "copy-snippet.html" %}
@@ -48,6 +48,9 @@
{%- call clipboard_button(invite.landing_page, class="primary") -%}
{% trans %}Copy invite link to clipboard{% endtrans %}
{%- endcall -%}
+ {%- call share_button("Invitation to Snikket", invite.landing_page, class="primary") -%}
+ {% trans %}Share invitation link{% endtrans %}
+ {%- endcall -%}
{%- call custom_form_button("remove_link", form.action_revoke.name, invite.id_, class="secondary danger", slim=True) -%}
{% trans %}Delete invitation{% endtrans %}
{%- endcall -%}
diff --git a/snikket_web/templates/admin_reset_user_password.html b/snikket_web/templates/admin_reset_user_password.html
index 3262b94..614cab0 100644
--- a/snikket_web/templates/admin_reset_user_password.html
+++ b/snikket_web/templates/admin_reset_user_password.html
@@ -15,7 +15,7 @@
{% trans %}Valid until{% endtrans %}
{{ reset_link.expires | format_date }}
- {% call showuri(reset_link.landing_page, id_="link-field") %}{% endcall %}
+ {% call showuri(reset_link.landing_page, id_="link-field") %}Reset your Snikket password{% endcall %}
{%- call custom_form_button("remove_link", form.action_revoke.name, reset_link.id_, class="secondary danger") -%}
diff --git a/snikket_web/templates/base.html b/snikket_web/templates/base.html
index c42b42f..7272dc3 100644
--- a/snikket_web/templates/base.html
+++ b/snikket_web/templates/base.html
@@ -16,5 +16,5 @@
- {% block body %}{% endblock %}
+ {% block body %}{% endblock %}