From 54f27794e7fee1113115baafe1b86fdbcde8e7c2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 23 Dec 2022 20:23:41 +0300 Subject: Display new replies as browser notifications --- .../resources/templates/views/settings_main.html | 113 ++++++++++++--------- 1 file changed, 65 insertions(+), 48 deletions(-) (limited to 'src/main/resources/templates/views') diff --git a/src/main/resources/templates/views/settings_main.html b/src/main/resources/templates/views/settings_main.html index 0c0853f5..8f3873a0 100644 --- a/src/main/resources/templates/views/settings_main.html +++ b/src/main/resources/templates/views/settings_main.html @@ -1,30 +1,36 @@ {% extends "layouts/default" %} {% block content %}
-

Настройки

+

Settings

{%if not visitor.verified %}

Verify your account by adding email or social account

{% endif %} +
+ Browser notifications + +
Notification options -

Reply notifications ("Message posted")

+

Reply notifications ("Message posted")

Subscriptions notifications ("@user subscribed...")

+ checked="checked" {% endif %} /> Subscriptions notifications ("@user subscribed...")

Posts recommendations ("Recommended by @user")

-

+ checked="checked" {% endif %} /> Posts recommendations ("Recommended by @user")

+

- + Telegram {% if telegram_name is not empty %}
Telegram: {{ telegram_name }} — - - + +
{% else %} @@ -35,37 +41,41 @@ {% if jids | length > 0 %}
- + XMPP accounts

Your accounts:

{% for jid in jids %} -
+
{% endfor %} {% for auth in auths %} - + Confirm
+ onclick="alert('To confirm, please send "AUTH {{ auth.getAuthCode() }}" (without quotes) from this account to "juick@juick.com".'); return false;">Confirm
{% endfor %}

{% if jids | length > 1 %} -

+

{% endif %} -

To add new jabber account: send any text message to juick@juick.com +

To add new jabber account: send any text message to juick@juick.com

{% endif %}
- + E-mail
-

Add account:
- - +

Add account:
+ +

@@ -73,40 +83,45 @@

Your accounts:

{% for email in emails %} -
+
{% endfor %} {% if emails is empty %} - -

+ - +

{% else %}

{% if jids | length > 1 %} -

+

{% endif %} {% endif %} {% if emails is not empty %}
-

You can receive notifications to email:
+

You can receive notifications to email:
Sent to - -

+ + +

{% endif %}

 

You can post to Juick via e-mail. Send your plain text - messages to juick@juick.com. You can attach one photo or video file.

+ messages to juick@juick.com. You can attach one photo or + video file.

- + Facebook {% if fbstatus.connected %} @@ -114,41 +129,43 @@
Facebook: Enabled — - - + +
{% else %}
Facebook: Disabled — - - + +
{% endif %} {% else %} -

Cross-posting to Facebook: Connect to Facebook

+

Cross-posting to Facebook: Connect to Facebook

{% endif %}
- - Twitter - {% if twitter_name is not empty %} -
-
Twitter: {{ twitter_name }} — - - -
-
- {% else %} -

Cross-posting to Twitter: Connect to Twitter

- {% endif %} + + Twitter + {% if twitter_name is not empty %} +
+
Twitter: {{ twitter_name }} — + + +
+
+ {% else %} +

Cross-posting to Twitter: Connect to Twitter

+ {% endif %}
{% endblock %} {% block "column" %} {% include "views/partial/settings_tabs" %} -{% endblock %} \ No newline at end of file +{% endblock %} -- cgit v1.2.3