mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixing tests, PSM and settings pane
- resolving test failures where number of tests changed - fixing issue with PSM label - re-removing app settings screen code
This commit is contained in:
parent
495b3da40e
commit
f29b088394
2 changed files with 45 additions and 48 deletions
|
@ -1,47 +1,49 @@
|
|||
<form>
|
||||
<table class="plain">
|
||||
<tbody>
|
||||
<tr class="post-setting">
|
||||
<td class="post-setting-label">
|
||||
<label for="url">URL</label>
|
||||
</td>
|
||||
<td class="post-setting-field">
|
||||
{{gh-blur-input class="post-setting-slug" id="url" value=slugValue name="post-setting-slug" action="updateSlug" placeholder=slugPlaceholder selectOnClick="true" stopEnterKeyDownPropagation="true"}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="post-setting">
|
||||
<td class="post-setting-label">
|
||||
<label for="pub-date">Pub Date</label>
|
||||
</td>
|
||||
<td class="post-setting-field">
|
||||
{{gh-blur-input class="post-setting-date" value=publishedAtValue name="post-setting-date" action="setPublishedAt" placeholder=publishedAtPlaceholder stopEnterKeyDownPropagation="true"}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="post-setting">
|
||||
<td class="post-setting-label">
|
||||
<label for="post-setting-author">Author</label>
|
||||
</td>
|
||||
<td class="post-setting-field">
|
||||
<table class="plain">
|
||||
<tbody>
|
||||
<tr class="post-setting">
|
||||
<td class="post-setting-label">
|
||||
<label for="url">URL</label>
|
||||
</td>
|
||||
<td class="post-setting-field">
|
||||
{{gh-blur-input class="post-setting-slug" id="url" value=slugValue name="post-setting-slug" action="updateSlug" placeholder=slugPlaceholder selectOnClick="true" stopEnterKeyDownPropagation="true"}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="post-setting">
|
||||
<td class="post-setting-label">
|
||||
<label for="pub-date">Pub Date</label>
|
||||
</td>
|
||||
<td class="post-setting-field">
|
||||
{{gh-blur-input class="post-setting-date" value=publishedAtValue name="post-setting-date" action="setPublishedAt" placeholder=publishedAtPlaceholder stopEnterKeyDownPropagation="true"}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="post-setting">
|
||||
<td class="post-setting-label">
|
||||
<label for="post-setting-author">Author</label>
|
||||
</td>
|
||||
<td class="post-setting-field">
|
||||
<span class="gh-select">
|
||||
{{view Ember.Select
|
||||
name="post-setting-author"
|
||||
content=authors
|
||||
optionValuePath="content.id"
|
||||
optionLabelPath="content.name"
|
||||
selection=selectedAuthor}}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="post-setting">
|
||||
<td class="post-setting-label">
|
||||
<label class="label" for="static-page">Static Page</label>
|
||||
</td>
|
||||
<td class="post-setting-item">
|
||||
{{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>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{{view Ember.Select
|
||||
name="post-setting-author"
|
||||
content=authors
|
||||
optionValuePath="content.id"
|
||||
optionLabelPath="content.name"
|
||||
selection=selectedAuthor}}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="post-setting">
|
||||
<td class="post-setting-label">
|
||||
<label for="static-page" {{action "togglePage" bubbles="false"}}>Static Page</label>
|
||||
</td>
|
||||
<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}}
|
||||
<span class="input-toggle-component"></span>
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
<button type="button" class="delete" {{action "openModal" "delete-post" this}}>Delete This Post</button>
|
||||
|
|
|
@ -13,11 +13,6 @@
|
|||
|
||||
{{gh-activating-list-item route="settings.users" title="Users" classNames="settings-menu-users"}}
|
||||
|
||||
{{#if showApps}}
|
||||
{{#unless session.user.isEditor}}
|
||||
{{gh-activating-list-item route="settings.apps" title="Apps" classNames="settings-menu-apps"}}
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
Loading…
Add table
Reference in a new issue