Ghost/core/client/templates/settings/apps.hbs
Peter Szel c614a652cb Ported settings/apps logic to Ember.
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
2014-06-17 23:25:24 +02:00

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>