2016-05-12 13:53:41 +02:00
|
|
|
<h1><i class="icon-vector-wrench settings-icon"></i>{{t "Settings" }}</h1>
|
2013-04-03 23:17:20 +02:00
|
|
|
|
2013-12-16 16:29:01 +01:00
|
|
|
<div id="settings-change-box">
|
2013-10-25 20:47:03 +02:00
|
|
|
|
2013-12-16 16:29:01 +01:00
|
|
|
<div class="alert" id="settings-status"></div>
|
2013-10-25 23:52:45 +02:00
|
|
|
|
2013-12-16 16:29:01 +01:00
|
|
|
<div id="account-settings" class="settings-section">
|
2016-09-14 02:20:13 +02:00
|
|
|
<div class="settings-section-title">
|
|
|
|
<i class="icon-vector-user settings-section-icon"></i>
|
|
|
|
{{t "Your Account" }}
|
|
|
|
</div>
|
2013-12-16 16:29:01 +01:00
|
|
|
<div class="account-settings-form">
|
|
|
|
<form action="/json/settings/change" method="post"
|
2014-02-13 23:47:57 +01:00
|
|
|
class="form-horizontal your-account-settings">
|
2016-09-14 02:20:13 +02:00
|
|
|
<div class="input-group" id="name_change_container">
|
|
|
|
<label for="full_name">{{t "Full name" }}</label>
|
|
|
|
<input type="text" name="full_name" id="full_name" value="{{ page_params.fullname }}" />
|
2013-12-16 16:29:01 +01:00
|
|
|
</div>
|
2013-10-21 01:04:25 +02:00
|
|
|
|
2016-09-14 02:20:13 +02:00
|
|
|
<!-- password start -->
|
2014-02-13 23:47:57 +01:00
|
|
|
{{#if page_params.password_auth_enabled}}
|
2016-09-14 02:20:13 +02:00
|
|
|
<div class="input-group" id="pw_change_link">
|
|
|
|
<label for="change_password_button">{{t "Password" }}</label>
|
|
|
|
<button class="change_password_button button" data-dismiss="modal" aria-hidden="true">{{t "Change Password" }}</button>
|
2013-12-16 16:29:01 +01:00
|
|
|
</div>
|
2013-10-21 01:04:25 +02:00
|
|
|
|
2013-12-16 16:29:01 +01:00
|
|
|
<div id="pw_change_controls">
|
2016-09-14 02:20:13 +02:00
|
|
|
<div class="input-group">
|
|
|
|
<label for="old_password">{{t "Old password" }}</label>
|
|
|
|
<input type="password" autocomplete="off" name="old_password" id="old_password" value="" />
|
|
|
|
(<a href="/accounts/password/reset/" target="_blank">{{t "Forgotten it?" }}</a>)
|
2013-12-16 16:29:01 +01:00
|
|
|
</div>
|
2013-10-28 15:49:38 +01:00
|
|
|
|
2016-09-14 02:20:13 +02:00
|
|
|
<div class="input-group">
|
|
|
|
<label for="new_password">{{t "New password" }}</label>
|
|
|
|
<input type="password" autocomplete="off" name="new_password" id="new_password" value="" />
|
2013-10-28 15:49:38 +01:00
|
|
|
</div>
|
2013-08-08 18:24:07 +02:00
|
|
|
|
2016-09-14 02:20:13 +02:00
|
|
|
<div class="input-group">
|
|
|
|
<label>{{t "Password strength" }}</label>
|
|
|
|
<div class="progress" id="pw_strength">
|
|
|
|
<div class="bar bar-danger fade" style="width: 10%;"></div>
|
2013-12-16 16:29:01 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-10-28 15:49:38 +01:00
|
|
|
|
2016-09-14 02:20:13 +02:00
|
|
|
<div class="input-group">
|
|
|
|
<label for="confirm_password">{{t "Confirm password" }}</label>
|
|
|
|
<input type="password" autocomplete="off" name="confirm_password" id="confirm_password" value="" />
|
2013-12-16 16:29:01 +01:00
|
|
|
</div>
|
2013-10-28 15:49:38 +01:00
|
|
|
|
|
|
|
</div>
|
2014-02-13 23:47:57 +01:00
|
|
|
{{/if}}
|
2013-10-25 23:52:45 +02:00
|
|
|
|
2016-09-14 02:20:13 +02:00
|
|
|
<div class="input-group">
|
|
|
|
<input type="submit" class="button green" name="change_settings" value="Save Changes" />
|
2013-12-16 16:29:01 +01:00
|
|
|
</div>
|
2014-02-03 14:07:03 +01:00
|
|
|
|
2016-09-14 02:20:13 +02:00
|
|
|
<div class="input-group">
|
|
|
|
<img id="user-settings-avatar" src="{{ page_params.avatar_url }}" />
|
2014-02-03 14:07:03 +01:00
|
|
|
<div id="user_avatar_file_input_error" class="text-error"></div>
|
|
|
|
<div id="user_avatar_file"></div>
|
2016-05-12 13:53:41 +02:00
|
|
|
<input type="file" name="user_avatar_file_input" class="notvisible" id="user_avatar_file_input" value="{{t 'Upload avatar' }}" />
|
2014-02-03 14:07:03 +01:00
|
|
|
<div id="upload_avatar_spinner"></div>
|
2016-09-14 02:20:13 +02:00
|
|
|
<button class="button standalone" id="user_avatar_upload_button">{{t 'Customize avatar' }}</button>
|
2014-02-03 14:07:03 +01:00
|
|
|
</div>
|
|
|
|
|
2013-12-16 16:29:01 +01:00
|
|
|
</form>
|
2013-10-25 23:52:45 +02:00
|
|
|
|
2013-12-16 16:29:01 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-05-28 23:10:11 +02:00
|
|
|
|
2016-10-05 02:03:00 +02:00
|
|
|
{{ partial "display-settings" }}
|
2015-08-19 22:35:46 +02:00
|
|
|
|
2016-10-05 02:17:42 +02:00
|
|
|
{{ partial "notification-settings" }}
|
2013-12-16 16:29:01 +01:00
|
|
|
</div>
|
2013-08-08 18:24:07 +02:00
|
|
|
|
2016-10-05 02:19:14 +02:00
|
|
|
{{ partial "bot-settings" }}
|
2013-12-16 16:29:01 +01:00
|
|
|
|
2016-10-05 02:21:09 +02:00
|
|
|
{{ partial "alert-word-settings" }}
|
2013-12-16 16:29:01 +01:00
|
|
|
|
2014-02-13 23:47:57 +01:00
|
|
|
<div class="ui-settings">
|
2013-12-16 16:29:01 +01:00
|
|
|
<div id="ui-settings" class="settings-section">
|
2016-05-12 13:53:41 +02:00
|
|
|
<div class="settings-section-title"><i class="icon-vector-beaker settings-section-icon"></i>{{#tr this}}__page_params.product_name__ Labs{{/tr}}</div>
|
2013-12-16 16:29:01 +01:00
|
|
|
<div class="alert" id="ui-settings-status"></div>
|
2016-09-14 02:20:13 +02:00
|
|
|
<form class="ui-settings-form">
|
|
|
|
<p class="input-group">
|
2016-05-12 13:53:41 +02:00
|
|
|
{{t "Warning: the below features are experimental features and may not work as well as you would like." }}
|
2013-12-16 16:25:26 +01:00
|
|
|
</p>
|
2016-09-14 02:20:13 +02:00
|
|
|
<div class="input-group thinner">
|
|
|
|
<input type="checkbox" class="inline-block" name="autoscroll_forever" id="autoscroll_forever"
|
|
|
|
{{#if page_params.autoscroll_forever}}
|
|
|
|
checked="checked"
|
|
|
|
{{/if}} />
|
|
|
|
<label for="autoscroll_forever" class="inline-block">
|
2016-05-12 13:53:41 +02:00
|
|
|
{{t "Always auto-scroll to new messages" }}
|
2013-12-16 16:29:01 +01:00
|
|
|
</label>
|
2016-09-14 02:20:13 +02:00
|
|
|
</div>
|
|
|
|
<div class="input-group thinner">
|
|
|
|
<input type="checkbox" class="inline-block" name="default_desktop_notifications" id="default_desktop_notifications"
|
|
|
|
{{#if page_params.default_desktop_notifications}}
|
|
|
|
checked="checked"
|
|
|
|
{{/if}} />
|
|
|
|
<label for="default_desktop_notifications" class="inline-block">
|
2016-05-12 13:53:41 +02:00
|
|
|
{{t "Enable desktop notifications for new streams" }}
|
2014-01-16 22:48:50 +01:00
|
|
|
</label>
|
|
|
|
|
2013-12-16 16:29:01 +01:00
|
|
|
</div>
|
2016-09-14 02:20:13 +02:00
|
|
|
<div class="input-group">
|
|
|
|
<div class="ui-submission">
|
|
|
|
<input type="submit" name="change_settings" value="{{t 'Save Changes' }}" class="button green" />
|
2013-12-16 16:25:26 +01:00
|
|
|
</div>
|
2013-12-16 16:29:01 +01:00
|
|
|
</div>
|
2016-09-14 02:20:13 +02:00
|
|
|
</form>
|
2013-12-16 16:29:01 +01:00
|
|
|
</div>
|
2014-02-13 23:47:57 +01:00
|
|
|
</div>
|