From 22a820893c15a2043fe71ad26f9baf4e1a1ceb74 Mon Sep 17 00:00:00 2001 From: Evert Date: Thu, 24 Aug 2017 14:08:27 +0300 Subject: [PATCH] some style --- src/style/main.styl | 2 ++ views/news.pug | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/style/main.styl b/src/style/main.styl index f64ad46..084598f 100644 --- a/src/style/main.styl +++ b/src/style/main.styl @@ -255,6 +255,8 @@ input:not([type="submit"]) .pgn display: inline-block margin-left: 10px + .button + margin: 0 1px .pagenum display: inline-block diff --git a/views/news.pug b/views/news.pug index 1c05b51..2879fcc 100644 --- a/views/news.pug +++ b/views/news.pug @@ -15,13 +15,13 @@ block body |Page #{news.page.page} of #{news.page.pages} .pgn 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 while n < news.page.pages a.button(href="/news/?page=" + (n + 1))= n + 1 - n++ 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 .article a.title(href="/news/" + val.id + "-" + val.slug)= val.title