mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 15:12:58 +03:00
Merge pull request #634 from sebgie/issue#593
Add setting for posts per page
This commit is contained in:
commit
8766257ee0
@ -57,10 +57,15 @@
|
|||||||
<label for="activeTheme"><strong>Theme</strong></label>
|
<label for="activeTheme"><strong>Theme</strong></label>
|
||||||
<select id="activeTheme" name="general[activeTheme]">
|
<select id="activeTheme" name="general[activeTheme]">
|
||||||
{{#each availableThemes}}
|
{{#each availableThemes}}
|
||||||
<option value="{{ name }}" {{#if active}}selected{{/if}}>{{ name }}</option>
|
<option value="{{name}}" {{#if active}}selected{{/if}}>{{name}}</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="postsPerPage"><strong>Posts per page</strong></label>
|
||||||
|
<input id="postsPerPage" name="general[postsPerPage]" type="number" value="{{postsPerPage}}">
|
||||||
|
<p>Number of posts per page displayed</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
@ -164,7 +164,8 @@
|
|||||||
email: this.$('#email-address').val(),
|
email: this.$('#email-address').val(),
|
||||||
logo: this.$('#logo').attr("src"),
|
logo: this.$('#logo').attr("src"),
|
||||||
icon: this.$('#icon').attr("src"),
|
icon: this.$('#icon').attr("src"),
|
||||||
activeTheme: this.$('#activeTheme').val()
|
activeTheme: this.$('#activeTheme').val(),
|
||||||
|
postsPerPage: this.$('#postsPerPage').val()
|
||||||
}, {
|
}, {
|
||||||
success: this.saveSuccess,
|
success: this.saveSuccess,
|
||||||
error: this.saveError
|
error: this.saveError
|
||||||
|
Loading…
Reference in New Issue
Block a user