aboutsummaryrefslogtreecommitdiff
path: root/juick-www
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-12-19 15:45:21 +0300
committerGravatar Vitaly Takmazov2017-12-19 15:45:21 +0300
commitedfb4c9c20bccfcf0cf87124f3946b5e24300a11 (patch)
treeb109a08f148430e3c1417ebd5dc41c44109b92e1 /juick-www
parenteab80ba585ae61a3ddef7a785a87ead7f39e9efe (diff)
www: update settings page
Diffstat (limited to 'juick-www')
-rw-r--r--juick-www/src/main/webapp/WEB-INF/views/settings_main.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/juick-www/src/main/webapp/WEB-INF/views/settings_main.html b/juick-www/src/main/webapp/WEB-INF/views/settings_main.html
index 14c200b6..47299b9f 100644
--- a/juick-www/src/main/webapp/WEB-INF/views/settings_main.html
+++ b/juick-www/src/main/webapp/WEB-INF/views/settings_main.html
@@ -29,6 +29,7 @@
</p>
{% endif %}
</fieldset>
+ {% if jids | length > 0 %}
<form action="/settings" method="POST" enctype="multipart/form-data">
<fieldset>
<legend style="background: url(//static.juick.com/settings/xmpp.png) no-repeat; padding-left: 58px; line-height: 48px;">
@@ -46,13 +47,14 @@
onclick="alert(\'To confirm, please send &quot;AUTH {{ auth.getAuthCode() }}&quot; (without quotes) from this account to &quot;juick@juick.com&quot;.\'); return false;">Confirm</a><br/>
{% endfor %}
</p>
- {% if jids is not empty %}
+ {% if jids | length > 1 %}
<p><input type="hidden" name="page" value="jid-del"/><input type="submit" value=" Delete "/></p>
{% endif %}
<p>To add new jabber account: send any text message to <a href="xmpp:juick@juick.com?message;body=login">juick@juick.com</a>
</p>
</fieldset>
</form>
+ {% endif %}
<fieldset>
<legend style="background: url(//static.juick.com/settings/email.png) no-repeat; padding-left: 58px; line-height: 48px;">
E-mail