Skip to content

Instantly share code, notes, and snippets.

@ro0gr
Last active June 17, 2018 09:48
Show Gist options
  • Save ro0gr/5288853d13f86f47ea2d3cc18ffff8ac to your computer and use it in GitHub Desktop.
Save ro0gr/5288853d13f86f47ea2d3cc18ffff8ac to your computer and use it in GitHub Desktop.
Simplified variation on the EmberObserver topic for PO
<div class="AddonSearch">
<form data-test-search>
<label for="addon-search-input">Search For Addons:</label>
<input id="addon-search-input" />
<button>GO</button>
</form>
<ul data-test-addon-list>
{{#each addons as |a|}}
<li data-test-addon-item>
<span data-score={{a.score}} class="score {{#if a.wip}}wip{{/if}}"></span>
{{link-to "addons" a.id}}<h3>{{a.title}}</h3>{{/link-to}}
{{#if a.categories}}
<ul>
{{#each a.categories as |category|}}
<li>{{category.tag}}</li>
{{/each}}
</ul>
{{/if}}
<span class="last-updated">{{a.updatedAt}}</span>
</li>
{{/each}}
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment