minor improvements

This commit is contained in:
BC
2019-01-24 23:07:33 -08:00
parent 8c421c4f4d
commit ec5fb059b8
3 changed files with 5 additions and 9 deletions

View File

@@ -38,13 +38,13 @@
extended-last-page-button (when (not= last-page-button total-pages)
(list
^ {:key 1} [:li [:span.pagination-ellipsis "…"]]
^ {:key 2} (last all-buttons)))
^ {:key -1} [:li [:span.pagination-ellipsis "…"]]
^ {:key -2} (last all-buttons)))
extended-first-page-button (when (not= first-page-button 0)
(list
^{:key 1} (first all-buttons)
^{:key 2} [:li [:span.pagination-ellipsis "…"]]))]
^{:key -1} (first all-buttons)
^{:key -2} [:li [:span.pagination-ellipsis "…"]]))]
[:nav.pagination {:role "pagination"}