mirror of https://github.com/zulip/zulip.git
setttings: Indent display settings checkboxes and fix header styles.
Aside from the indentation of checkboxes, the headers are added and changed to become more unified with other page styling.
This commit is contained in:
parent
005a58ecd6
commit
330a3bd144
|
@ -273,7 +273,7 @@ casper.then(function () {
|
||||||
casper.waitUntilVisible("#default_language", function () {
|
casper.waitUntilVisible("#default_language", function () {
|
||||||
casper.test.info("Checking if we are on Chinese page.");
|
casper.test.info("Checking if we are on Chinese page.");
|
||||||
casper.test.assertEvalEquals(function () {
|
casper.test.assertEvalEquals(function () {
|
||||||
return $('#default_language_name').text();
|
return $('#default_language_name').text().trim();
|
||||||
}, 'Chinese Simplified');
|
}, 'Chinese Simplified');
|
||||||
casper.test.info("Opening German page through i18n url.");
|
casper.test.info("Opening German page through i18n url.");
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
<div id="display-settings" class="settings-section" data-name="display-settings">
|
<div id="display-settings" class="settings-section" data-name="display-settings">
|
||||||
<div class="alert" id="display-settings-status"></div>
|
<div class="alert" id="display-settings-status"></div>
|
||||||
<form class="display-settings-form">
|
<form class="display-settings-form">
|
||||||
|
<h3 class="light">{{t "Language settings" }}</h3>
|
||||||
|
|
||||||
<p for="default_language" class="inline-block title">
|
<div class="side-padded-container input-group user-name-section">
|
||||||
{{t "Default language" }}: <span id='default_language_name'>{{page_params.default_language_name}}</span>
|
<label class="inline-block title">{{t "Default language" }}</label>
|
||||||
<a id="default_language" href="#default_language" title="{{t 'Change default language' }}">[{{t "Change" }}]</a>
|
<a id="default_language" href="#default_language">
|
||||||
</p>
|
<button type="button" class="button rounded sea-green inline-block input-size" id='default_language_name'>
|
||||||
|
{{page_params.default_language_name}}
|
||||||
|
</button>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{ partial "default_language_modal"}}
|
{{ partial "default_language_modal"}}
|
||||||
|
|
||||||
|
@ -31,41 +36,60 @@
|
||||||
<label for="left_side_userlist" class="inline-block">{{t "Display user list on left side in narrow windows." }}</label>
|
<label for="left_side_userlist" class="inline-block">{{t "Display user list on left side in narrow windows." }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input-group">
|
<h3 class="light">{{t "Display settings" }}</h3>
|
||||||
<label class="checkbox">
|
|
||||||
<input type="checkbox" name="emoji_alt_code" id="emoji_alt_code"
|
<div class="side-padded-container">
|
||||||
{{#if page_params.emoji_alt_code}}
|
<div class="input-group">
|
||||||
checked="checked"
|
<label class="checkbox">
|
||||||
{{/if}} />
|
<input type="checkbox" name="left_side_userlist" id="left_side_userlist"
|
||||||
<span></span>
|
{{#if page_params.left_side_userlist}}
|
||||||
</label>
|
checked="checked"
|
||||||
<label for="emoji_alt_code" class="inline-block">{{t 'Display emoji reactions as text (:heart: instead of <img alt=":heart:" class="emoji" src="/static/generated/emoji/images/emoji/unicode/2764.png" title=":heart:"/>).' }}</label>
|
{{/if}} />
|
||||||
|
<span></span>
|
||||||
|
</label>
|
||||||
|
<label for="left_side_userlist" class="inline-block">{{t "Display user list on left side in narrow windows." }}</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="input-group">
|
||||||
|
<label class="checkbox">
|
||||||
|
<input type="checkbox" name="emoji_alt_code" id="emoji_alt_code"
|
||||||
|
{{#if page_params.emoji_alt_code}}
|
||||||
|
checked="checked"
|
||||||
|
{{/if}} />
|
||||||
|
<span></span>
|
||||||
|
</label>
|
||||||
|
<label for="emoji_alt_code" class="inline-block">{{t 'Display emoji reactions as text (:heart: instead of <img alt=":heart:" class="emoji" src="/static/generated/emoji/images/emoji/unicode/2764.png" title=":heart:"/>).' }}</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input-group">
|
<h3 class="light">{{t "Time settings" }}</h3>
|
||||||
<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 "Display time in 24-hour format (17:00 instead of 5:00 PM)" }}
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group">
|
<div class="side-padded-container">
|
||||||
<label for="timezone">{{t "Time zone" }}:</label>
|
<div class="input-group">
|
||||||
<select name="timezone" id="user_timezone">
|
<label class="checkbox">
|
||||||
{{#unless page_params.timezone}}
|
<input type="checkbox" name="twenty_four_hour_time" id="twenty_four_hour_time"
|
||||||
<option></option>
|
{{#if page_params.twenty_four_hour_time}}
|
||||||
{{/unless}}
|
checked="checked"
|
||||||
|
{{/if}} />
|
||||||
|
<span></span>
|
||||||
|
</label>
|
||||||
|
<label for="twenty_four_hour_time" class="inline-block">
|
||||||
|
{{t "Display time in 24-hour format (17:00 instead of 5:00 PM)" }}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{#each timezones}}
|
<div class="input-group">
|
||||||
<option value="{{ this }}">{{ this }}</option>
|
<label for="timezone">{{t "Time zone" }}:</label>
|
||||||
{{/each}}
|
<select name="timezone" id="user_timezone">
|
||||||
</select>
|
{{#unless page_params.timezone}}
|
||||||
|
<option></option>
|
||||||
|
{{/unless}}
|
||||||
|
|
||||||
|
{{#each timezones}}
|
||||||
|
<option value="{{ this }}">{{ this }}</option>
|
||||||
|
{{/each}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if false}}
|
{{#if false}}
|
||||||
|
|
Loading…
Reference in New Issue