0
Fork 0
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:
Felix Rieseberg 2014-08-15 17:18:36 -04:00 committed by Hannah Wolfe
parent b1c77c70fd
commit ab9fe8752f

View file

@ -17,10 +17,12 @@
{{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
@ -31,16 +33,15 @@
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}}
<span class="input-toggle-component"></span> <label class="checkbox" for="static-page" {{action 'togglePage' bubbles="false"}}></label>
</label>
</td> </td>
</tr> </tr>
</tbody> </tbody>