framework/ember/app/templates/discussions.hbs

54 lines
1.3 KiB
Handlebars
Raw Normal View History

<div class="discussions-area">
<nav class="discussions-nav">
2015-01-03 09:56:14 +08:00
{{view view.sidebarView viewName="sidebar"}}
</nav>
<div class="discussions-results">
<div class="discussions-toolbar">
<div class="discussions-toolbar-view">
2014-12-20 14:26:46 +08:00
<span class="btn-group">
{{#link-to (query-params show="discussions") class="btn btn-default btn-sm"}}{{fa-icon "bars"}}{{/link-to}}
{{#link-to (query-params show="posts") class="btn btn-default btn-sm"}}{{fa-icon "square-o"}}{{/link-to}}
</span>
{{select-input
content=sortOptions
optionValuePath="content.sort"
optionLabelPath="content.label"
value=sort}}
</div>
<div class="discussions-toolbar-action">
<button class="btn btn-default">{{fa-icon "check"}}</button>
</div>
</div>
{{#if resultsLoading}}
{{loading-indicator size="small"}}
{{else}}
<ul class="discussions-list">
{{#each discussion in content}}
{{discussions-list-item discussion=discussion}}
{{/each}}
</ul>
{{#if moreResults}}
<div class="load-more">
{{#if loadingMore}}
{{loading-indicator size="small"}}
{{else}}
<button class="btn btn-default" {{action loadMore}}>Load More</button>
{{/if}}
</div>
{{/if}}
2014-12-20 14:26:46 +08:00
{{/if}}
</div>
2014-12-20 14:26:46 +08:00
</div>
<div class="discussion-area">
{{outlet}}
2014-12-20 14:26:46 +08:00
</div>