Skip to content

Commit ab9fe87

Browse files
felixriesebergErisDS
authored andcommitted
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)
1 parent b1c77c7 commit ab9fe87

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

core/client/templates/post-settings-menu.hbs

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,31 @@
1717
{{gh-blur-input class="post-setting-date" value=publishedAtValue name="post-setting-date" action="setPublishedAt" placeholder=publishedAtPlaceholder stopEnterKeyDownPropagation="true"}}
1818
</td>
1919
</tr>
20+
{{#unless session.user.isAuthor}}
2021
<tr class="post-setting">
2122
<td class="post-setting-label">
2223
<label for="post-setting-author">Author</label>
2324
</td>
25+
2426
<td class="post-setting-field">
25-
<span class="gh-select">
26-
{{view Ember.Select
27-
name="post-setting-author"
28-
content=authors
29-
optionValuePath="content.id"
30-
optionLabelPath="content.name"
31-
selection=selectedAuthor}}
32-
</span>
33-
</td>
27+
<span class="gh-select">
28+
{{view Ember.Select
29+
name="post-setting-author"
30+
content=authors
31+
optionValuePath="content.id"
32+
optionLabelPath="content.name"
33+
selection=selectedAuthor}}
34+
</span>
35+
</td>
36+
{{/unless}}
3437
</tr>
3538
<tr class="post-setting">
3639
<td class="post-setting-label">
37-
<label for="static-page" {{action "togglePage" bubbles="false"}}>Static Page</label>
40+
<label class="label" for="static-page">Static Page</label>
3841
</td>
3942
<td class="post-setting-item">
40-
<label class="checkbox" for="static-page" {{action "togglePage" bubbles="false"}}>
41-
{{input type="checkbox" name="static-page" id="static-page" class="post-setting-static-page" checked=page}}
42-
<span class="input-toggle-component"></span>
43-
</label>
43+
{{input type="checkbox" name="static-page" id="static-page" class="post-setting-static-page" checked=page}}
44+
<label class="checkbox" for="static-page" {{action 'togglePage' bubbles="false"}}></label>
4445
</td>
4546
</tr>
4647
</tbody>

0 commit comments

Comments
 (0)