blob: 090d64a216bfd3b11d42db6e0007613888d8823c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
{% extends "layouts/default" %}
{% block content %}
<article>
<h1>Settings</h1>
{%if not visitor.verified %}
<h2 style="color: red; padding: 20px;">Verify your account by adding email or social account</h2>
{% endif %}
<fieldset>
<legend>Browser notifications</legend>
<button class="Button" id="notifications_toggle">...</button>
</fieldset>
<fieldset>
<legend
style="background: url(/durov.png) no-repeat; padding-left: 58px; line-height: 48px; background-size: contain;">
Telegram</legend>
{% if telegram_name is not empty %}
<form action="/settings" method="POST">
<div>Telegram: <b>{{ telegram_name }}</b> —
<input type="hidden" name="page" value="telegram-del" />
<input type="submit" value=" Disable " {% if not beans.userServiceImpl.canDeleteTelegramUser(visitor)
%}disabled="disabled" {% endif %} class="Button" />
</div>
</form>
{% else %}
<p>To connect Telegram account: send any text message to <a href="https://telegram.me/Juick_bot">@Juick_bot</a>
</p>
{% endif %}
</fieldset>
{% if jids | length > 0 %}
<form action="/settings" method="POST">
<fieldset>
<legend
style="background: url(//static.juick.com/settings/xmpp.png) no-repeat; padding-left: 58px; line-height: 48px;">
XMPP accounts
</legend>
<p>Your accounts:</p>
<p>
{% for jid in jids %}
<label><input type="radio" name="delete" value="xmpp;{{ jid }}">{{ jid }}</label><br />
{% endfor %}
{% for auth in auths %}
<label><input type="radio" name="delete" value="xmpp-unauth;{{ auth.account }}">{{ auth.account
}}</label>
— <a href="#"
onclick="alert('To confirm, please send "AUTH {{ auth.getAuthCode() }}" (without quotes) from this account to "juick@juick.com".'); return false;">Confirm</a><br />
{% endfor %}
</p>
{% if jids | length > 1 %}
<p><input type="hidden" name="page" value="jid-del" /><input type="submit" class="Button"
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
</legend>
<form action="/settings" method="POST">
<p>Add account:<br />
<input type="text" name="account" />
<input type="hidden" name="page" value="email-add" />
<input type="submit" value=" Add " class="Button" />
</p>
</form>
<form action="/settings" method="POST">
<p>Your accounts:</p>
<p>
{% for email in emails %}
<label><input type="radio" name="account" value="{{ email }}">{{ email }}</label><br />
{% endfor %}
{% if emails is empty %}
-
</p>
{% else %}
</p>
{% if emails | length > 1 %}
<p><input type="hidden" name="page" value="email-del" /><input type="submit" class="Button"
value=" Delete " /></p>
{% endif %}
{% endif %}
</form>
{% if emails is not empty %}
<!--email_off-->
<form action="/settings" method="POST">
<p>You can receive notifications to email:<br />
Sent to <select name="account">
<option value="">Disabled</option>
{% for email in emails %}
<option value="{{ email }}" {% if email_active==email %} selected="selected" {% endif %}>
{{ email }}
</option>
{% endfor %}
</select>
<input type="hidden" name="page" value="email-subscr" />
<input type="submit" class="Button" value="OK" />
</p>
</form>
<!--/email_off-->
{% endif %}
<p> </p>
<p>You can post to Juick via e-mail. Send your <span style="text-decoration: underline;">plain text</span>
messages to <span><a href="mailto:juick@juick.com">juick@juick.com</a></span>. You can attach one photo or
video file.</p>
</fieldset>
<fieldset>
<legend
style="background: url(//static.juick.com/settings/facebook.png) no-repeat; padding-left: 58px; line-height: 48px;">
Facebook
</legend>
{% if fbstatus.connected %}
{% if fbstatus.crosspostEnabled %}
<form action="/settings" method="POST">
<div>
Facebook: <b>Enabled</b> —
<input type="hidden" name="page" value="facebook-disable" />
<input type="submit" class="Button" value=" Disable " />
</div>
</form>
{% else %}
<form action="/settings" method="POST">
<div>
Facebook: <b>Disabled</b> —
<input type="hidden" name="page" value="facebook-enable" />
<input type="submit" class="Button" value=" Enable " />
</div>
</form>
{% endif %}
{% else %}
<p>Cross-posting to Facebook: <a href="/_fblogin"><img src="//static.juick.com/facebook-connect.png"
alt="Connect to Facebook" /></a></p>
{% endif %}
</fieldset>
<fieldset>
<legend
style="background: url(//static.juick.com/settings/twitter.png) no-repeat; padding-left: 58px; line-height: 48px;">
Twitter</legend>
{% if twitter_name is not empty %}
<form action="/settings" method="POST">
<div>Twitter: <b>{{ twitter_name }}</b> —
<input type="hidden" name="page" value="twitter-del" />
<input type="submit" class="Button" value=" Disable " />
</div>
</form>
{% else %}
<p>Cross-posting to Twitter: <a href="/_twitter"><img src="//static.juick.com/twitter-connect.png"
alt="Connect to Twitter" /></a></p>
{% endif %}
</fieldset>
</article>
{% endblock %}
{% block "column" %}
{% include "views/partial/settings_tabs" %}
{% endblock %}
|