2021-08-19 16:38:10 +02:00
|
|
|
<form class="display-settings-form">
|
2021-10-21 14:11:19 +02:00
|
|
|
<div class="lang-time-settings {{#if for_realm_settings}}org-subsection-parent{{else}}subsection-parent{{/if}}">
|
2021-08-19 16:38:10 +02:00
|
|
|
<!-- this is inline block so that the alert notification can sit beside
|
2021-10-21 14:11:19 +02:00
|
|
|
it. If there's not an alert, don't make it inline-block.-->
|
2021-09-27 12:59:09 +02:00
|
|
|
<div class="subsection-header inline-block">
|
2021-11-09 12:36:40 +01:00
|
|
|
{{#if for_realm_settings}}
|
|
|
|
<h3>{{t "Time" }}</h3>
|
|
|
|
{{else}}
|
2021-10-21 14:11:19 +02:00
|
|
|
<h3>{{t "Language and time" }}</h3>
|
2021-11-09 12:36:40 +01:00
|
|
|
{{/if}}
|
|
|
|
{{> settings_save_discard_widget section_name="lang-time-settings" show_only_indicator=(not for_realm_settings) }}
|
2021-09-27 12:59:09 +02:00
|
|
|
</div>
|
2021-11-09 12:36:40 +01:00
|
|
|
{{#unless for_realm_settings}}
|
2021-08-19 16:38:10 +02:00
|
|
|
<div class="input-group">
|
2021-10-21 14:11:19 +02:00
|
|
|
<label class="inline-block title">{{t "Language" }}</label>
|
2021-08-10 09:35:20 +02:00
|
|
|
<button type="button" class="setting_default_language button btn-link rounded small inline-block">
|
2021-08-19 16:38:10 +02:00
|
|
|
<span class="default_language_name">{{default_language_name}}</span>
|
|
|
|
<i class="fa fa-pencil"></i>
|
|
|
|
</button>
|
2018-04-17 21:37:33 +02:00
|
|
|
</div>
|
2021-10-21 14:11:19 +02:00
|
|
|
{{/unless}}
|
2017-04-02 20:59:22 +02:00
|
|
|
|
2021-08-19 16:38:10 +02:00
|
|
|
<div class="input-group">
|
|
|
|
<label for="twenty_four_hour_time" class="dropdown-title">{{ settings_label.twenty_four_hour_time }}</label>
|
2021-09-28 09:09:52 +02:00
|
|
|
<select name="twenty_four_hour_time" class="setting_twenty_four_hour_time prop-element" data-setting-widget-type="string">
|
2021-08-19 16:38:10 +02:00
|
|
|
{{#each twenty_four_hour_time_values}}
|
2021-12-04 15:39:38 +01:00
|
|
|
<option value='{{ this.value }}'>{{ this.description }}</option>
|
2021-08-19 16:38:10 +02:00
|
|
|
{{/each}}
|
|
|
|
</select>
|
2017-04-26 04:45:03 +02:00
|
|
|
</div>
|
2021-10-21 14:11:19 +02:00
|
|
|
|
2021-08-19 16:38:10 +02:00
|
|
|
</div>
|
2017-04-02 20:59:22 +02:00
|
|
|
|
2021-10-21 14:11:19 +02:00
|
|
|
|
|
|
|
<div class="theme-settings {{#if for_realm_settings}}org-subsection-parent{{else}}subsection-parent{{/if}}">
|
2021-09-27 12:59:09 +02:00
|
|
|
<div class="subsection-header">
|
2021-10-21 14:11:19 +02:00
|
|
|
<h3 class="light">{{t "Theme" }}</h3>
|
|
|
|
{{> settings_save_discard_widget section_name="theme-settings" show_only_indicator=(not for_realm_settings) }}
|
2021-09-27 12:59:09 +02:00
|
|
|
</div>
|
2018-01-15 19:36:32 +01:00
|
|
|
|
2021-08-19 16:38:10 +02:00
|
|
|
<div class="input-group">
|
2021-10-21 14:11:19 +02:00
|
|
|
<label for="color_scheme" class="dropdown-title">{{t "Color scheme" }}</label>
|
|
|
|
<select name="color_scheme" class="setting_color_scheme prop-element" data-setting-widget-type="number">
|
|
|
|
{{> dropdown_options_widget option_values=color_scheme_values}}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-group">
|
|
|
|
<label class="emoji-theme title">{{t "Emoji theme" }}</label>
|
2021-08-19 16:38:10 +02:00
|
|
|
<div class="emojiset_choices grey-box">
|
2021-08-25 13:03:05 +02:00
|
|
|
{{#each settings_object.emojiset_choices}}
|
2021-12-04 15:39:38 +01:00
|
|
|
<label>
|
|
|
|
<input type="radio" class="setting_emojiset_choice prop-element" name="emojiset" value="{{this.key}}" data-setting-widget-type="radio-group"/>
|
|
|
|
<span>{{this.text}}</span>
|
|
|
|
<span class="right">
|
|
|
|
{{#if (eq this.key "text") }}
|
|
|
|
<div class="emoji_alt_code"> :relaxed:</div>
|
|
|
|
{{else}}
|
|
|
|
<img class="emoji" src="/static/generated/emoji/images-{{this.key}}-64/1f642.png" />
|
|
|
|
<img class="emoji" src="/static/generated/emoji/images-{{this.key}}-64/1f44d.png" />
|
|
|
|
<img class="emoji" src="/static/generated/emoji/images-{{this.key}}-64/1f680.png" />
|
|
|
|
<img class="emoji" src="/static/generated/emoji/images-{{this.key}}-64/1f389.png" />
|
|
|
|
{{/if}}
|
|
|
|
</span>
|
|
|
|
</label>
|
2021-08-19 16:38:10 +02:00
|
|
|
{{/each}}
|
2017-11-02 21:25:36 +01:00
|
|
|
</div>
|
2018-03-23 22:38:00 +01:00
|
|
|
</div>
|
2021-08-19 16:38:10 +02:00
|
|
|
|
|
|
|
{{> settings_checkbox
|
|
|
|
setting_name="translate_emoticons"
|
2021-08-25 13:03:05 +02:00
|
|
|
is_checked=settings_object.translate_emoticons
|
2021-08-19 21:04:24 +02:00
|
|
|
label=settings_label.translate_emoticons
|
|
|
|
prefix=prefix}}
|
2021-10-21 14:11:19 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="advanced-settings {{#if for_realm_settings}}org-subsection-parent{{else}}subsection-parent{{/if}}">
|
|
|
|
<div class="subsection-header">
|
|
|
|
<h3 class="light">{{t "Advanced" }}</h3>
|
|
|
|
{{> settings_save_discard_widget section_name="advanced-settings" show_only_indicator=(not for_realm_settings) }}
|
|
|
|
</div>
|
|
|
|
|
2021-10-25 19:17:19 +02:00
|
|
|
<div class="input-group thinner setting-next-is-related">
|
2021-10-21 14:11:19 +02:00
|
|
|
<label for="default_view" class="dropdown-title">{{t "Default view" }}
|
2021-10-25 19:17:19 +02:00
|
|
|
{{> ../help_link_widget link="/help/configure-default-view" }}
|
2021-10-21 14:11:19 +02:00
|
|
|
</label>
|
|
|
|
<select name="default_view" class="setting_default_view prop-element" data-setting-widget-type="string">
|
|
|
|
{{> dropdown_options_widget option_values=default_view_values}}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
2021-10-25 19:17:19 +02:00
|
|
|
{{> settings_checkbox
|
|
|
|
setting_name="escape_navigates_to_default_view"
|
|
|
|
is_checked=settings_object.escape_navigates_to_default_view
|
|
|
|
label=settings_label.escape_navigates_to_default_view
|
|
|
|
prefix=prefix}}
|
|
|
|
|
2021-10-21 14:11:19 +02:00
|
|
|
<div class="input-group">
|
|
|
|
<label for="demote_inactive_streams" class="dropdown-title">{{t "Demote inactive streams" }}
|
|
|
|
{{> ../help_link_widget link="/help/manage-inactive-streams" }}
|
|
|
|
</label>
|
|
|
|
<select name="demote_inactive_streams" class="setting_demote_inactive_streams prop-element" data-setting-widget-type="number">
|
|
|
|
{{> dropdown_options_widget option_values=demote_inactive_streams_values}}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{#each display_settings.settings.user_display_settings}}
|
2021-12-04 15:39:38 +01:00
|
|
|
{{> settings_checkbox
|
|
|
|
setting_name=this
|
|
|
|
is_checked=(lookup ../settings_object this)
|
|
|
|
label=(lookup ../settings_label this)
|
|
|
|
render_only=(lookup ../display_settings.render_only this)
|
|
|
|
prefix=../prefix}}
|
2021-10-21 14:11:19 +02:00
|
|
|
{{/each}}
|
|
|
|
|
2021-08-19 16:38:10 +02:00
|
|
|
</div>
|
|
|
|
</form>
|