mirror of https://github.com/zulip/zulip.git
112 lines
5.3 KiB
Handlebars
112 lines
5.3 KiB
Handlebars
<form class="display-settings-form">
|
|
<div class="lang-time-settings {{#if for_realm_settings}}org-subsection-parent{{else}}subsection-parent{{/if}}">
|
|
{{#unless for_realm_settings}}
|
|
<!-- 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.-->
|
|
<div class="subsection-header inline-block">
|
|
<h3>{{t "Language and time" }}</h3>
|
|
{{> settings_save_discard_widget section_name="language-settings" show_only_indicator=true }}
|
|
</div>
|
|
|
|
<div class="input-group">
|
|
<label class="inline-block title">{{t "Language" }}</label>
|
|
<button type="button" class="setting_default_language button btn-link rounded small inline-block">
|
|
<span class="default_language_name">{{default_language_name}}</span>
|
|
<i class="fa fa-pencil"></i>
|
|
</button>
|
|
</div>
|
|
|
|
{{> ../default_language_modal language_list=language_list_dbl_col prefix=prefix}}
|
|
{{/unless}}
|
|
|
|
<div class="input-group">
|
|
<label for="twenty_four_hour_time" class="dropdown-title">{{ settings_label.twenty_four_hour_time }}</label>
|
|
<select name="twenty_four_hour_time" class="setting_twenty_four_hour_time prop-element" data-setting-widget-type="string">
|
|
{{#each twenty_four_hour_time_values}}
|
|
<option value='{{ this.value }}'>{{ this.description }}</option>
|
|
{{/each}}
|
|
</select>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="theme-settings {{#if for_realm_settings}}org-subsection-parent{{else}}subsection-parent{{/if}}">
|
|
<div class="subsection-header">
|
|
<h3 class="light">{{t "Theme" }}</h3>
|
|
{{> settings_save_discard_widget section_name="theme-settings" show_only_indicator=(not for_realm_settings) }}
|
|
</div>
|
|
|
|
<div class="input-group">
|
|
<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>
|
|
<div class="emojiset_choices grey-box">
|
|
{{#each settings_object.emojiset_choices}}
|
|
<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>
|
|
{{/each}}
|
|
</div>
|
|
</div>
|
|
|
|
{{> settings_checkbox
|
|
setting_name="translate_emoticons"
|
|
is_checked=settings_object.translate_emoticons
|
|
label=settings_label.translate_emoticons
|
|
prefix=prefix}}
|
|
|
|
</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>
|
|
|
|
<div class="input-group inline-block">
|
|
<label for="default_view" class="dropdown-title">{{t "Default view" }}
|
|
{{> ../help_link_widget link="/help/change-default-view" }}
|
|
</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>
|
|
|
|
<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}}
|
|
{{> 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}}
|
|
{{/each}}
|
|
|
|
</div>
|
|
</form>
|