diff --git a/OpenBench/static/paging.css b/OpenBench/static/paging.css index 53024b2..3283978 100644 --- a/OpenBench/static/paging.css +++ b/OpenBench/static/paging.css @@ -9,6 +9,10 @@ justify-content: center; } +.pages { + display: flex; +} + .page, .ellipsis { display: inline-block; padding: 6px 1rem; @@ -36,6 +40,10 @@ border-bottom-left-radius: 7px; } +.current { + background-color: var(--color3); +} + .next { border-top-right-radius: 7px; border-bottom-right-radius: 7px; diff --git a/Templates/OpenBench/Blocks/pagebrowser.html b/Templates/OpenBench/Blocks/pagebrowser.html index 6a292ff..fba0a39 100644 --- a/Templates/OpenBench/Blocks/pagebrowser.html +++ b/Templates/OpenBench/Blocks/pagebrowser.html @@ -5,7 +5,15 @@
- {% for page in paging.pages %}{% if page != "..." %}{{ page }}{% else %}{% endif %}{% endfor %} + {% for page in paging.pages %} + {% if page == "..." %} + + {% elif page == paging.page %} + {{ page }} + {% else %} + {{ page }} + {% endif %} + {% endfor %}