some style

This commit is contained in:
Evert Prants 2017-08-24 14:08:27 +03:00
parent d32e47d3ff
commit 22a820893c
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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