<div class="options">
    Trier par :
    <ul>
        <li {{ action 'sortBy' 'alphabetical' }} class="{{if isAlphabetical "active"}}">Ordre alphabétique</li>
        <li {{ action 'sortBy' 'popularity' }} class="{{if isPopularity "active"}}">Popularité</li>
    </ul>
</div>

<div class="tags{{if more " hasMore"}}">
    <ul>
    {{#each themes as |theme|}}
        <li {{ action 'setQueryParameters' theme.id }} class="{{ popularity theme.count minimum maximum }}{{if (contains filter.theme theme.id) ' selected'}}">{{ theme.label }}&nbsp;({{ theme.count }})</li>
    {{/each }}
      {{#if (and more hasMore)}}<li><button class="more" {{ action 'loadMore' }}>Voir plus</button></li>{{/if}}
    </ul>
</div>