some style
This commit is contained in:
parent
d32e47d3ff
commit
22a820893c
@ -255,6 +255,8 @@ input:not([type="submit"])
|
|||||||
.pgn
|
.pgn
|
||||||
display: inline-block
|
display: inline-block
|
||||||
margin-left: 10px
|
margin-left: 10px
|
||||||
|
.button
|
||||||
|
margin: 0 1px
|
||||||
|
|
||||||
.pagenum
|
.pagenum
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
@ -15,13 +15,13 @@ block body
|
|||||||
|Page #{news.page.page} of #{news.page.pages}
|
|Page #{news.page.page} of #{news.page.pages}
|
||||||
.pgn
|
.pgn
|
||||||
if news.page.page > 1
|
if news.page.page > 1
|
||||||
a.button(href="/news/?page=" + news.page.page - 1) Previous
|
a.button(href="/news/?page=" + (news.page.page - 1)) Previous
|
||||||
- var n = 0
|
- var n = 0
|
||||||
while n < news.page.pages
|
while n < news.page.pages
|
||||||
a.button(href="/news/?page=" + (n + 1))= n + 1
|
a.button(href="/news/?page=" + (n + 1))= n + 1
|
||||||
- n++
|
- n++
|
||||||
if news.page.pages > news.page.page
|
if news.page.pages > news.page.page
|
||||||
a.button(href="/news/?page=" + news.page.page + 1) Next
|
a.button(href="/news/?page=" + (news.page.page + 1)) Next
|
||||||
each val in news.articles
|
each val in news.articles
|
||||||
.article
|
.article
|
||||||
a.title(href="/news/" + val.id + "-" + val.slug)= val.title
|
a.title(href="/news/" + val.id + "-" + val.slug)= val.title
|
||||||
|
Reference in New Issue
Block a user