Skip to content

Commit

Permalink
Fix UI tweaks
Browse files Browse the repository at this point in the history
- a-z selector
- pagination alignment
  • Loading branch information
andrew-gardener committed Dec 7, 2023
1 parent 66e23eb commit ce6611b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ jobs:
pull: true
tags: dhilsfu/doceww:latest
cache-from: type=registry,ref=dhilsfu/doceww:buildcache
cache-to: type=registry,ref=dhilsfu/doceww:buildcache,mode=max

- name: Run Unit Tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion config/packages/knp_paginator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ knp_paginator:
sort_direction_name: direction # sort direction query parameter name
distinct: true # ensure distinct results, useful when ORM queries are using GROUP BY statements
template:
pagination: "@NinesUtil/pagination/bootstrap_v5_pagination_right.html.twig"
pagination: "@NinesUtil/pagination/bootstrap_v5_pagination.html.twig"
sortable: "@KnpPaginator/Pagination/sortable_link.html.twig"
4 changes: 2 additions & 2 deletions templates/misc/alpha.html.twig
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<nav aria-label="Page navigation">
<ul class="pagination">
<ul class="pagination justify-content-center">
{% for letter in 'A' .. 'Z' %}
{% set class='' %}
{% if letter in letters %}
{% set class='active' %}
{% endif %}
<li class="{{ class }}"><a href="?alpha={{ letter }}">{{ letter }}</a></li>
<li class="page-item"><a class="page-link {{ class }}" href="?alpha={{ letter }}">{{ letter }}</a></li>
{% endfor %}
</ul>
</nav>
2 changes: 1 addition & 1 deletion templates/search/partial/list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
</a>
{% endfor %}
</div>
<div class="navigation">
<div class="navigation my-3">
{{ knp_pagination_render(results) }}
</div>

0 comments on commit ce6611b

Please sign in to comment.