2015-01-01 17:38:38 +08:00
|
|
|
<div class="discussions-area">
|
|
|
|
|
|
|
|
<nav class="discussions-nav">
|
2015-01-03 09:56:14 +08:00
|
|
|
{{view view.sidebarView viewName="sidebar"}}
|
2015-01-01 17:38:38 +08:00
|
|
|
</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>
|
2015-01-01 17:38:38 +08:00
|
|
|
<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}}
|
2015-01-01 17:38:38 +08:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2014-12-20 14:26:46 +08:00
|
|
|
</div>
|
|
|
|
|
2015-01-01 17:38:38 +08:00
|
|
|
<div class="discussion-area">
|
|
|
|
{{outlet}}
|
2014-12-20 14:26:46 +08:00
|
|
|
</div>
|