|
|
@ -1,16 +1,23 @@
|
|
|
|
extends frame
|
|
|
|
extends frame
|
|
|
|
block main-content
|
|
|
|
block main-content
|
|
|
|
#post-index
|
|
|
|
#post-index
|
|
|
|
#post-index-wrapper
|
|
|
|
#post-index-wrapper
|
|
|
|
#post-index-menu
|
|
|
|
#post-index-menu
|
|
|
|
a(href="#")= "All Posts ("+page_info.all+")"
|
|
|
|
- if(postFilter=='all')
|
|
|
|
|
|
|
|
a.current-filter(href="/@/dashboard/posts/all")= "All Posts ("+page_info.all+")"
|
|
|
|
|
|
|
|
- else
|
|
|
|
|
|
|
|
a(href="/@/dashboard/posts/all")= "All Posts ("+page_info.all+")"
|
|
|
|
| .
|
|
|
|
| .
|
|
|
|
a(href="#")= "Published ("+page_info.published+")"
|
|
|
|
- if(postFilter=='published')
|
|
|
|
|
|
|
|
a.current-filter(href="/@/dashboard/posts/published")= "Published ("+page_info.published+")"
|
|
|
|
|
|
|
|
- else
|
|
|
|
|
|
|
|
a(href="/@/dashboard/posts/published")= "Published ("+page_info.published+")"
|
|
|
|
| .
|
|
|
|
| .
|
|
|
|
a(href="#")= "Pages ("+page_info.pages+")"
|
|
|
|
- if(postFilter=='deleted')
|
|
|
|
| .
|
|
|
|
a.current-filter(href="/@/dashboard/posts/deleted")= "Deleted ("+page_info.deleted+")"
|
|
|
|
a(href="#")= "Deleted ("+page_info.deleted+")"
|
|
|
|
- else
|
|
|
|
|
|
|
|
a(href="/@/dashboard/posts/deleted")= "Deleted ("+page_info.deleted+")"
|
|
|
|
|
|
|
|
|
|
|
|
a.add-new-post(href="/@/dashboard/posts/add/new") + Create New Post
|
|
|
|
a.add-new-post(href="/@/dashboard/posts/add/new") + Create New Post
|
|
|
|
#posts-list
|
|
|
|
#posts-list
|
|
|
|
- var index = 0;
|
|
|
|
- var index = 0;
|
|
|
@ -20,20 +27,20 @@ block main-content
|
|
|
|
span= items[index].post.created
|
|
|
|
span= items[index].post.created
|
|
|
|
div.post-bg(style="background: #fc6399 url("+items[index].post.feature.substr(8)+") no-repeat center center / cover")
|
|
|
|
div.post-bg(style="background: #fc6399 url("+items[index].post.feature.substr(8)+") no-repeat center center / cover")
|
|
|
|
p= items[index].post.plaintext.substr(0, 200)+"..."
|
|
|
|
p= items[index].post.plaintext.substr(0, 200)+"..."
|
|
|
|
|
|
|
|
|
|
|
|
- var next = parseInt(page_index, 10) + 1
|
|
|
|
- var next = parseInt(page_index, 10) + 1
|
|
|
|
- var prev = parseInt(page_index, 10) - 1
|
|
|
|
- var prev = parseInt(page_index, 10) - 1
|
|
|
|
- if(next > page_count) next = 1
|
|
|
|
- if(next > page_count) next = 1
|
|
|
|
- if(prev <= 0) prev = page_count
|
|
|
|
- if(prev <= 0) prev = page_count
|
|
|
|
|
|
|
|
|
|
|
|
br
|
|
|
|
br
|
|
|
|
a.page-btns(href="/@/dashboard/posts/"+prev)
|
|
|
|
a.page-btns(href="/@/dashboard/posts/"+postFilter+"/"+prev)
|
|
|
|
svg(viewBox="0 0 20 20" class="icons")
|
|
|
|
svg(viewBox="0 0 20 20" class="icons")
|
|
|
|
use(xlink:href='/dash/assets/images/sprite.svg#entypo-chevron-left')
|
|
|
|
use(xlink:href='/dash/assets/images/sprite.svg#entypo-chevron-left')
|
|
|
|
|
|
|
|
|
|
|
|
span.paginate= "PAGE "+page_index+" OF "+page_count
|
|
|
|
span.paginate= "PAGE "+page_index+" OF "+page_count
|
|
|
|
|
|
|
|
|
|
|
|
a.page-btns(href="/@/dashboard/posts/"+next)
|
|
|
|
a.page-btns(href="/@/dashboard/posts/"+postFilter+"/"+next)
|
|
|
|
svg(viewBox="0 0 20 20" class="icons")
|
|
|
|
svg(viewBox="0 0 20 20" class="icons")
|
|
|
|
use(xlink:href='/dash/assets/images/sprite.svg#entypo-chevron-right')
|
|
|
|
use(xlink:href='/dash/assets/images/sprite.svg#entypo-chevron-right')
|
|
|
|
|
|
|
|
|
|
|
|