2016-12-02 21:29:16 +01:00
|
|
|
<div id="display-settings" class="settings-section" data-name="display-settings">
|
2017-04-26 04:45:03 +02:00
|
|
|
<form class="display-settings-form">
|
2018-02-06 17:03:03 +01:00
|
|
|
<!-- this is inline block so that the alert notification can sit beside
|
|
|
|
it. If there's not an alert, don't make it inline-block. -->
|
|
|
|
<h3 class="inline-block">{{t "Language settings" }}</h3>
|
|
|
|
<div class="alert-notification" id="language-settings-status"></div>
|
2016-12-02 21:29:36 +01:00
|
|
|
|
2018-01-25 02:11:17 +01:00
|
|
|
<div class="input-group user-name-section">
|
2017-07-05 21:52:32 +02:00
|
|
|
<label class="inline-block title">{{t "Default language" }}</label>
|
|
|
|
<a id="default_language" href="#default_language">
|
2018-03-05 03:48:51 +01:00
|
|
|
<button type="button" class="button rounded small inline-block">
|
|
|
|
<span id="default_language_name">{{page_params.default_language_name}}</span>
|
2017-07-17 19:33:58 +02:00
|
|
|
<i class="fa fa-pencil"></i>
|
2017-07-05 21:52:32 +02:00
|
|
|
</button>
|
|
|
|
</a>
|
2017-07-18 03:04:40 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ partial "default_language_modal"}}
|
2017-04-26 04:45:03 +02:00
|
|
|
|
2018-02-06 17:03:03 +01:00
|
|
|
<h3 class="inline-block">{{t "Display settings" }}</h3>
|
|
|
|
<div class="alert-notification" id="display-settings-status"></div>
|
2017-07-18 03:04:40 +02:00
|
|
|
|
2018-01-25 02:11:17 +01:00
|
|
|
<div class="input-group">
|
|
|
|
<label class="checkbox">
|
2018-02-05 22:38:45 +01:00
|
|
|
<input type="checkbox" name="night_mode" id="night_mode"
|
|
|
|
{{#if page_params.night_mode}}
|
2018-01-25 02:11:17 +01:00
|
|
|
checked="checked"
|
|
|
|
{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
2018-03-05 03:52:11 +01:00
|
|
|
<label for="night_mode" class="inline-block">{{t "Night mode" }}</label>
|
2018-01-25 02:11:17 +01:00
|
|
|
</div>
|
2016-10-05 02:03:00 +02:00
|
|
|
|
2018-01-25 02:11:17 +01:00
|
|
|
<div class="input-group">
|
|
|
|
<label class="checkbox">
|
2018-02-05 22:38:45 +01:00
|
|
|
<input type="checkbox" name="high_contrast_mode" id="high_contrast_mode"
|
|
|
|
{{#if page_params.high_contrast_mode}}
|
2018-01-25 02:11:17 +01:00
|
|
|
checked="checked"
|
|
|
|
{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
2018-02-05 22:38:45 +01:00
|
|
|
<label for="high_contrast_mode" class="inline-block">{{t "High contrast mode" }}</label>
|
2018-01-25 02:11:17 +01:00
|
|
|
</div>
|
2017-11-14 20:42:31 +01:00
|
|
|
|
2018-01-25 02:11:17 +01:00
|
|
|
<div class="input-group">
|
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox" name="left_side_userlist" id="left_side_userlist"
|
|
|
|
{{#if page_params.left_side_userlist}}
|
|
|
|
checked="checked"
|
|
|
|
{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
<label for="left_side_userlist" class="inline-block">{{t "User list on left sidebar in narrow windows" }}</label>
|
2017-04-26 04:45:03 +02:00
|
|
|
</div>
|
2017-04-02 20:59:22 +02:00
|
|
|
|
2018-02-06 17:03:03 +01:00
|
|
|
<h3 class="inline-block">{{t "Time settings" }}</h3>
|
|
|
|
<div class="alert-notification" id="time-settings-status"></div>
|
2017-04-02 20:59:22 +02:00
|
|
|
|
2018-01-25 02:11:17 +01:00
|
|
|
<div class="input-group">
|
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox" name="twenty_four_hour_time" id="twenty_four_hour_time"
|
|
|
|
{{#if page_params.twenty_four_hour_time}}
|
|
|
|
checked="checked"
|
|
|
|
{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
<label for="twenty_four_hour_time" class="inline-block">
|
|
|
|
{{t "24-hour time (17:00 instead of 5:00 PM)" }}
|
|
|
|
</label>
|
|
|
|
</div>
|
2017-07-05 21:52:32 +02:00
|
|
|
|
2018-01-25 02:11:17 +01:00
|
|
|
<div class="input-group">
|
|
|
|
<label for="timezone" class="dropdown-title">{{t "Time zone" }}:</label>
|
|
|
|
<select name="timezone" id="user_timezone">
|
|
|
|
{{#unless page_params.timezone}}
|
|
|
|
<option></option>
|
|
|
|
{{/unless}}
|
2017-07-05 21:52:32 +02:00
|
|
|
|
2018-01-25 02:11:17 +01:00
|
|
|
{{#each timezones}}
|
|
|
|
<option value="{{ this }}">{{ this }}</option>
|
|
|
|
{{/each}}
|
|
|
|
</select>
|
2017-04-26 04:45:03 +02:00
|
|
|
</div>
|
2017-04-02 20:59:22 +02:00
|
|
|
|
2018-02-06 17:03:03 +01:00
|
|
|
<h3 class="inline-block light">Emoji style</h3>
|
|
|
|
<div class="alert-notification" id="emoji-settings-status"></div>
|
2018-01-15 19:36:32 +01:00
|
|
|
|
2017-11-02 21:25:36 +01:00
|
|
|
<div class="input-group side-padded-container">
|
2017-11-11 01:55:40 +01:00
|
|
|
<div class="emojiset_choices grey-box">
|
|
|
|
{{#each page_params.emojiset_choices }}
|
2017-11-02 21:25:36 +01:00
|
|
|
<label>
|
|
|
|
<input type="radio" class="emojiset_choice" name="emojiset_group" value="{{@key}}" />
|
2018-01-02 13:02:13 +01:00
|
|
|
<span>{{t this }}</span>
|
2017-11-11 01:55:40 +01:00
|
|
|
<span class="right">
|
2018-01-02 13:02:13 +01:00
|
|
|
{{#if @last}}
|
2018-01-17 14:46:10 +01:00
|
|
|
<div class="emoji_alt_code"> :relaxed:</div>
|
2018-01-02 13:02:13 +01:00
|
|
|
{{else}}
|
2017-11-02 21:25:36 +01:00
|
|
|
<img class="emoji" src="/static/generated/emoji/images-{{@key}}-64/1f642.png" />
|
|
|
|
<img class="emoji" src="/static/generated/emoji/images-{{@key}}-64/1f44d.png" />
|
|
|
|
<img class="emoji" src="/static/generated/emoji/images-{{@key}}-64/1f680.png" />
|
2017-11-11 01:55:40 +01:00
|
|
|
<img class="emoji" src="/static/generated/emoji/images-{{@key}}-64/1f389.png" />
|
2018-01-02 13:02:13 +01:00
|
|
|
{{/if}}
|
2017-11-02 21:25:36 +01:00
|
|
|
</span>
|
|
|
|
</label>
|
2017-04-26 04:45:03 +02:00
|
|
|
{{/each}}
|
2017-11-02 21:25:36 +01:00
|
|
|
</div>
|
2017-04-26 04:45:03 +02:00
|
|
|
</div>
|
2018-03-23 22:38:00 +01:00
|
|
|
|
|
|
|
<div class="input-group side-padded-container">
|
|
|
|
<label class="checkbox">
|
|
|
|
<input type="checkbox" name="translate_emoticons" id="translate_emoticons"
|
|
|
|
{{#if page_params.translate_emoticons}}
|
|
|
|
checked="checked"
|
|
|
|
{{/if}} />
|
|
|
|
<span></span>
|
|
|
|
</label>
|
|
|
|
<label for="translate_emoticons" class="inline-block">
|
|
|
|
{{t "Translate emoticons (convert <code>:)</code> to 😃 in messages)" }}
|
|
|
|
</label>
|
|
|
|
</div>
|
2017-04-26 04:45:03 +02:00
|
|
|
</form>
|
2016-10-05 02:03:00 +02:00
|
|
|
</div>
|