diff options
author | aouwt <74026992+aouwt@users.noreply.github.com> | 2022-01-10 19:36:06 -0500 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2022-01-11 00:51:14 +0000 |
commit | b08eb8d07f57cd5606e4b4867ad0e86c75a7311f (patch) | |
tree | e921a8dabe8f385a2d808387a97dccca9d39deb1 | |
parent | 510ecff54b74ab98bd8d8efcd0a3c1a99e979fb0 (diff) |
tidy up pagination barpagination
-rw-r--r-- | apioforum/static/style.css | 4 | ||||
-rw-r--r-- | apioforum/templates/common.html | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/apioforum/static/style.css b/apioforum/static/style.css index 280749b..342db6c 100644 --- a/apioforum/static/style.css +++ b/apioforum/static/style.css @@ -116,6 +116,10 @@ nav#navbar p:first-of-type { margin-left:0.5em } nav#navbar a { color: blue; text-decoration: none } nav#navbar .links { display: flex; } +nav#pages { text-align: center; margin-top: 2vh; margin-bottom: 2vh; } +nav#pages a { margin-left: 2vw; margin-right: 2vw; } +nav#pages .mid { margin-left: 5vw; margin-right: 5vw; } + /* todo: make the navbar less bad */ .flashmsg { border: 1px solid black; background-color: yellow; max-width: max-content; padding: 5px; clear: both;} diff --git a/apioforum/templates/common.html b/apioforum/templates/common.html index 8eeef70..638c423 100644 --- a/apioforum/templates/common.html +++ b/apioforum/templates/common.html @@ -142,13 +142,13 @@ {% macro pagination_nav(page,max_pageno,view) %} <nav aria-label="pagination" id="pages"> {% if page > 1 %} - <a href="{{url_for(view,**kwargs)}}" aria-label="first page"><<</a> - <a href="{{url_for(view,page=page-1,**kwargs)}}" aria-label="previous page"><</a> + <a href="{{url_for(view,**kwargs)}}" aria-label="first page"><< first</a> + <a href="{{url_for(view,page=page-1,**kwargs)}}" aria-label="previous page">< prev</a> {% endif %} page {{page}} of {{max_pageno}} {% if page < max_pageno %} {# > #} - <a href="{{url_for(view,page=page+1,**kwargs)}}" aria-label="next page">></a> - <a href="{{url_for(view,page=max_pageno,**kwargs)}}" aria-label="last page">>></a> + <a href="{{url_for(view,page=page+1,**kwargs)}}" aria-label="next page">next ></a> + <a href="{{url_for(view,page=max_pageno,**kwargs)}}" aria-label="last page">last >></a> {% endif %} </nav> {% endmacro %} |