2016-04-11 22:38:59 +02:00
<div class='content-wrapper' id='settings'>
<form>
<strong>Browsing settings</strong>
<p>These settings are saved to the browser's local storage and are not coupled to the user account, so they don't apply to other devices or browsers alike.</p>
2016-08-05 20:09:11 +02:00
<ul class='input'>
<li>
<%= ctx.makeCheckbox( {
2017-01-20 21:51:04 +01:00
text: "Enable keyboard shortcuts <a class='append icon' href='" + ctx.formatClientLink('help', 'keyboard') + "'><i class='fa fa-question-circle-o'></i></a>",
2016-08-05 20:09:11 +02:00
name: 'keyboard-shortcuts',
checked: ctx.browsingSettings.keyboardShortcuts,
}) %>
</li>
<li>
<%= ctx.makeNumericInput( {
text: 'Number of posts per page',
name: 'posts-per-page',
checked: ctx.browsingSettings.postCount,
value: ctx.browsingSettings.postsPerPage,
min: 10,
max: 100,
}) %>
</li>
2020-08-22 22:59:13 +02:00
<li>
<%= ctx.makeCheckbox( {
text: 'Use dark theme',
name: 'dark-theme',
checked: ctx.browsingSettings.darkTheme,
}) %>
<p class='hint'>Changing this setting will require you to refresh the page for it to apply.</p>
</li>
2016-08-05 20:09:11 +02:00
<li>
<%= ctx.makeCheckbox( {
text: 'Upscale small posts',
name: 'upscale-small-posts',
checked: ctx.browsingSettings.upscaleSmallPosts}) %>
</li>
<li>
<%= ctx.makeCheckbox( {
2016-09-10 11:12:28 +02:00
text: 'Enable endless scroll',
2016-08-05 20:09:11 +02:00
name: 'endless-scroll',
checked: ctx.browsingSettings.endlessScroll,
}) %>
<p class='hint'>Rather than using a paged navigation, smoothly scrolls through the content.</p>
</li>
2020-09-27 21:11:34 +02:00
<li>
<%= ctx.makeCheckbox( {
text: 'Use post flow',
name: 'post-flow',
checked: ctx.browsingSettings.postFlow,
}) %>
<p class='hint'>Use a content-aware flow for thumbnails on the post search page.</p>
</li>
2016-08-05 20:09:11 +02:00
<li>
<%= ctx.makeCheckbox( {
text: 'Enable transparency grid',
name: 'transparency-grid',
checked: ctx.browsingSettings.transparencyGrid,
}) %>
<p class='hint'>Renders a checkered pattern behind posts with transparent background.</p>
</li>
<li>
<%= ctx.makeCheckbox( {
text: 'Show tag suggestions',
name: 'tag-suggestions',
checked: ctx.browsingSettings.tagSuggestions,
}) %>
<p class='hint'>Shows a popup with suggested tags in edit forms.</p>
</li>
2016-11-11 23:14:51 +01:00
<li>
<%= ctx.makeCheckbox( {
text: 'Automatically play video posts',
name: 'autoplay-videos',
checked: ctx.browsingSettings.autoplayVideos,
}) %>
</li>
2019-05-22 23:08:26 +02:00
<li>
<%= ctx.makeCheckbox( {
2020-06-23 18:36:26 +02:00
text: 'Display underscores as spaces',
name: 'underscores-as-spaces',
2019-05-22 23:08:26 +02:00
checked: ctx.browsingSettings.tagUnderscoresAsSpaces,
}) %>
<p class='hint'>Display all underscores as if they were spaces. This is only a visual change, which means that you'll still have to use underscores when searching or editing tags.</p>
</li>
2016-08-05 20:09:11 +02:00
</ul>
2016-04-11 22:38:59 +02:00
<div class='messages'></div>
<div class='buttons'>
<input type='submit' value='Save settings'/>
</div>
</form>
</div>