|
17 | 17 | {{gh-blur-input class="post-setting-date" value=publishedAtValue name="post-setting-date" action="setPublishedAt" placeholder=publishedAtPlaceholder stopEnterKeyDownPropagation="true"}}
|
18 | 18 | </td>
|
19 | 19 | </tr>
|
| 20 | + {{#unless session.user.isAuthor}} |
20 | 21 | <tr class="post-setting">
|
21 | 22 | <td class="post-setting-label">
|
22 | 23 | <label for="post-setting-author">Author</label>
|
23 | 24 | </td>
|
| 25 | + |
24 | 26 | <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}} |
34 | 37 | </tr>
|
35 | 38 | <tr class="post-setting">
|
36 | 39 | <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> |
38 | 41 | </td>
|
39 | 42 | <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> |
44 | 45 | </td>
|
45 | 46 | </tr>
|
46 | 47 | </tbody>
|
|
0 commit comments