0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/client/app/templates/settings/apps.hbs
Austin Burdine 28d265c9c1 update Ember to 1.12.1/ember-data to 1.0.0-beta.18
No issue
- fixed "{{#each}}" helper in templates to use block syntax
- fixed deprecated ember.controller getter/setter function to use new syntax
- removed unnecessary pass-protect route view
2015-06-02 22:26:16 -06:00

26 lines
946 B
Handlebars

<header class="view-header">
<h2 class="view-title">Apps</h2>
</header>
<section class="view-content settings-apps">
<table class="js-apps">
<thead>
<th>App name</th>
<th>Status</th>
</thead>
<tbody>
{{#each model itemController="settings/app" as |appController|}}
<tr>
<td>
{{#if appController.model.package}}{{appController.model.package.name}} - {{appController.model.package.version}}{{else}}{{appController.model.name}} - package.json missing :({{/if}}
</td>
<td>
<button type="button" {{action toggleApp appController}} class="btn js-button-active {{if activeClass 'btn-red js-button-deactivate'}} {{if inactiveClass 'btn-green'}}">
{{appController.buttonText}}
</button>
</td>
</tr>
{{/each}}
</tbody>
</table>
</section>