mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Post Settings: No 'Author' selection for 'author'
closes #3756 - The post settings menu’s option to change the post’s author isn’t displayed if the user has the ‘author’ role. - Also fixed some incorrect indentation in the template (no actual code change)
This commit is contained in:
parent
b1c77c70fd
commit
ab9fe8752f
1 changed files with 14 additions and 13 deletions
|
@ -17,30 +17,31 @@
|
||||||
{{gh-blur-input class="post-setting-date" value=publishedAtValue name="post-setting-date" action="setPublishedAt" placeholder=publishedAtPlaceholder stopEnterKeyDownPropagation="true"}}
|
{{gh-blur-input class="post-setting-date" value=publishedAtValue name="post-setting-date" action="setPublishedAt" placeholder=publishedAtPlaceholder stopEnterKeyDownPropagation="true"}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{{#unless session.user.isAuthor}}
|
||||||
<tr class="post-setting">
|
<tr class="post-setting">
|
||||||
<td class="post-setting-label">
|
<td class="post-setting-label">
|
||||||
<label for="post-setting-author">Author</label>
|
<label for="post-setting-author">Author</label>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="post-setting-field">
|
<td class="post-setting-field">
|
||||||
<span class="gh-select">
|
<span class="gh-select">
|
||||||
{{view Ember.Select
|
{{view Ember.Select
|
||||||
name="post-setting-author"
|
name="post-setting-author"
|
||||||
content=authors
|
content=authors
|
||||||
optionValuePath="content.id"
|
optionValuePath="content.id"
|
||||||
optionLabelPath="content.name"
|
optionLabelPath="content.name"
|
||||||
selection=selectedAuthor}}
|
selection=selectedAuthor}}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
{{/unless}}
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="post-setting">
|
<tr class="post-setting">
|
||||||
<td class="post-setting-label">
|
<td class="post-setting-label">
|
||||||
<label for="static-page" {{action "togglePage" bubbles="false"}}>Static Page</label>
|
<label class="label" for="static-page">Static Page</label>
|
||||||
</td>
|
</td>
|
||||||
<td class="post-setting-item">
|
<td class="post-setting-item">
|
||||||
<label class="checkbox" for="static-page" {{action "togglePage" bubbles="false"}}>
|
{{input type="checkbox" name="static-page" id="static-page" class="post-setting-static-page" checked=page}}
|
||||||
{{input type="checkbox" name="static-page" id="static-page" class="post-setting-static-page" checked=page}}
|
<label class="checkbox" for="static-page" {{action 'togglePage' bubbles="false"}}></label>
|
||||||
<span class="input-toggle-component"></span>
|
|
||||||
</label>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Add table
Reference in a new issue