mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
c614a652cb
Closes #2423 - Created the apps route to fetch apps from server - Created controller for a single app - Modified the template of the apps page to use this controller - Created the Apps model - Created AppAdapter to use the FixtureAdapter for Ember Data
28 lines
842 B
Handlebars
28 lines
842 B
Handlebars
<header class="fade-in">
|
|
<button class="button-back">Back</button>
|
|
<h2 class="title">Apps</h2>
|
|
</header>
|
|
|
|
<section class="content fade-in">
|
|
<table class="js-apps">
|
|
<thead>
|
|
<th>App name</th>
|
|
<th>Status</th>
|
|
</thead>
|
|
<tbody>
|
|
{{#each itemController="settings/app"}}
|
|
<tr>
|
|
<td>
|
|
{{#if package}}{{package.name}} - {{package.version}}{{else}}{{name}} - package.json missing :({{/if}}
|
|
</td>
|
|
<td>
|
|
<button {{action toggleApp this}} {{bind-attr class=":js-button-active activeClass:button-delete inactiveClass:button-add activeClass:js-button-deactivate"}}>
|
|
{{buttonText}}
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
</section>
|