2017-02-15 15:40:57 +03:00
|
|
|
<section class="gh-canvas">
|
2017-02-23 21:47:52 +03:00
|
|
|
<header class="gh-canvas-header">
|
|
|
|
<h2 class="gh-canvas-title">Your stories</h2>
|
|
|
|
<section class="view-actions">
|
|
|
|
{{#link-to "editor.new" class="gh-btn gh-btn-green" data-test-new-post-button=true}}<span>New story</span>{{/link-to}}
|
|
|
|
</section>
|
|
|
|
</header>
|
2017-02-01 22:49:58 +03:00
|
|
|
|
2017-02-23 21:47:52 +03:00
|
|
|
<div class="gh-contentfilter">
|
2017-04-10 14:16:19 +03:00
|
|
|
<div class="gh-contentfilter-left">
|
|
|
|
{{#power-select
|
|
|
|
placeholder="All posts"
|
|
|
|
selected=selectedType
|
|
|
|
options=availableTypes
|
|
|
|
searchField="name"
|
|
|
|
onchange=(action (mut k))
|
|
|
|
tagName="div"
|
|
|
|
classNames="gh-contentfilter-menu gh-contentfilter-type"
|
|
|
|
triggerClass="gh-contentfilter-menu-trigger"
|
|
|
|
dropdownClass="gh-contentfilter-menu-dropdown"
|
2017-04-13 14:22:43 +03:00
|
|
|
matchTriggerWidth=false
|
2017-04-10 14:16:19 +03:00
|
|
|
data-test-type-select=true
|
|
|
|
as |type|
|
|
|
|
}}
|
|
|
|
{{type.name}}
|
|
|
|
{{/power-select}}
|
2017-03-02 21:35:09 +03:00
|
|
|
|
2017-04-10 14:16:19 +03:00
|
|
|
{{#unless session.user.isAuthor}}
|
|
|
|
{{#power-select
|
|
|
|
placeholder="All authors"
|
|
|
|
selected=selectedAuthor
|
|
|
|
options=availableAuthors
|
|
|
|
searchField="name"
|
|
|
|
onchange=(action (mut k))
|
|
|
|
tagName="div"
|
|
|
|
classNames="gh-contentfilter-menu gh-contentfilter-author"
|
|
|
|
triggerClass="gh-contentfilter-menu-trigger"
|
|
|
|
dropdownClass="gh-contentfilter-menu-dropdown"
|
2017-04-13 14:22:43 +03:00
|
|
|
matchTriggerWidth=false
|
2017-04-10 14:16:19 +03:00
|
|
|
data-test-author-select=true
|
|
|
|
as |author|
|
|
|
|
}}
|
|
|
|
{{author.name}}
|
|
|
|
{{/power-select}}
|
|
|
|
{{/unless}}
|
2017-03-02 21:35:09 +03:00
|
|
|
|
2017-04-10 14:16:19 +03:00
|
|
|
{{#power-select
|
|
|
|
placeholder="All tags"
|
|
|
|
selected=selectedTag
|
|
|
|
options=availableTags
|
|
|
|
searchField="name"
|
|
|
|
onchange=(action (mut k))
|
|
|
|
tagName="div"
|
|
|
|
classNames="gh-contentfilter-menu gh-contentfilter-tag"
|
|
|
|
triggerClass="gh-contentfilter-menu-trigger"
|
|
|
|
dropdownClass="gh-contentfilter-menu-dropdown"
|
2017-04-13 14:22:43 +03:00
|
|
|
searchPlaceholder="Search tags"
|
|
|
|
matchTriggerWidth=false
|
2017-04-10 14:16:19 +03:00
|
|
|
data-test-tag-select=true
|
|
|
|
as |tag|
|
|
|
|
}}
|
|
|
|
{{tag.name}}
|
|
|
|
{{/power-select}}
|
|
|
|
</div>
|
|
|
|
<div class="gh-contentfilter-right">
|
|
|
|
Sort by:
|
|
|
|
{{#power-select
|
|
|
|
selected=selectedOrder
|
|
|
|
options=availableOrders
|
|
|
|
searchEnabled=false
|
|
|
|
onchange=(action (mut k))
|
|
|
|
tagName="div"
|
|
|
|
classNames="gh-contentfilter-menu gh-contentfilter-sort"
|
|
|
|
triggerClass="gh-contentfilter-menu-trigger"
|
|
|
|
dropdownClass="gh-contentfilter-menu-dropdown"
|
2017-04-13 14:22:43 +03:00
|
|
|
horizontalPosition="right"
|
|
|
|
matchTriggerWidth=false
|
2017-04-10 14:16:19 +03:00
|
|
|
data-test-order-select=true
|
|
|
|
as |order|
|
|
|
|
}}
|
|
|
|
{{order.name}}
|
|
|
|
{{/power-select}}
|
|
|
|
</div>
|
2017-02-23 21:47:52 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{gh-loading-spinner}}
|
2017-02-01 22:49:58 +03:00
|
|
|
</section>
|