2018-10-31 17:00:31 +01:00
|
|
|
extends frame
|
|
|
|
block main-content
|
2018-11-11 00:08:00 +01:00
|
|
|
#post-index
|
|
|
|
#post-index-wrapper
|
2018-10-31 17:00:31 +01:00
|
|
|
h2 Entries
|
2018-11-11 00:08:00 +01:00
|
|
|
a.add-new-post(href="/@/dashboard/posts/add/new")
|
2018-11-09 02:45:37 +01:00
|
|
|
svg#new-upload-link(viewBox="0 0 20 20" class="icons")
|
2018-11-11 00:08:00 +01:00
|
|
|
use(xlink:href='/dash/assets/images/sprite.svg#entypo-plus')
|
2018-11-09 02:45:37 +01:00
|
|
|
| NEW POST
|
2018-11-11 00:08:00 +01:00
|
|
|
#posts-list
|
2018-10-31 17:00:31 +01:00
|
|
|
- var index = 0;
|
|
|
|
- for ( index; index < items.length; index++)
|
2018-11-22 02:08:53 +01:00
|
|
|
- var date = new Date(items[index].post.created)
|
2018-11-26 23:14:13 +01:00
|
|
|
a.post-list-link(href="/@/dashboard/posts/edit/"+items[index].post.slug id=items[index].post.uuid)
|
2018-11-22 02:08:53 +01:00
|
|
|
= items[index].post.title
|
2018-10-31 17:00:31 +01:00
|
|
|
br
|
|
|
|
span= date.getFullYear()+"-"+date.getMonth()+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()
|
|
|
|
- var next = parseInt(page_index, 10) + 1
|
|
|
|
- var prev = parseInt(page_index, 10) - 1
|
|
|
|
- if(next > page_count) next = 1
|
|
|
|
- if(prev <= 0) prev = page_count
|
|
|
|
|
|
|
|
br
|
2018-11-11 00:08:00 +01:00
|
|
|
a.page-btns(href="/@/dashboard/posts/"+prev)
|
2018-10-31 17:00:31 +01:00
|
|
|
svg(viewBox="0 0 20 20" class="icons")
|
|
|
|
use(xlink:href='/dash/assets/images/sprite.svg#entypo-chevron-left')
|
|
|
|
|
|
|
|
span.paginate= "PAGE "+page_index+" OF "+page_count
|
|
|
|
|
2018-11-11 00:08:00 +01:00
|
|
|
a.page-btns(href="/@/dashboard/posts/"+next)
|
2018-10-31 17:00:31 +01:00
|
|
|
svg(viewBox="0 0 20 20" class="icons")
|
|
|
|
use(xlink:href='/dash/assets/images/sprite.svg#entypo-chevron-right')
|
|
|
|
|