Skip to content

Commit 5a04ced

Browse files
author
Olivier Auverlot
committed
Use icon_img for icons
1 parent 6074659 commit 5a04ced

File tree

1 file changed

+4
-29
lines changed

1 file changed

+4
-29
lines changed

sqlpage/templates/pagination.handlebars

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,7 @@
66
{{#if first_title}}
77
<a class="page-link page-text" href="{{first_link}}" tabindex="-1" aria-disabled="true">{{first_title}}</a>
88
{{else}}
9-
<a class="page-link" href="{{first_link}}" tabindex="-1" aria-disabled="true">
10-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
11-
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
12-
stroke-linecap="round" stroke-linejoin="round" class="icon icon-1">
13-
<path d="M11 7l-5 5l5 5" />
14-
<path d="M17 7l-5 5l5 5" />
15-
</svg>
16-
</a>
9+
<a class="page-link" href="{{first_link}}" tabindex="-1" aria-disabled="true">{{icon_img 'chevrons-left'}}</a>
1710
{{/if}}
1811
</li>
1912
{{/if}}
@@ -22,13 +15,7 @@
2215
{{#if previous_title}}
2316
<a class="page-link page-text" href="{{previous_link}}" tabindex="-1" aria-disabled="true">{{previous_title}}</a>
2417
{{else}}
25-
<a class="page-link" href="{{previous_link}}" tabindex="-1" aria-disabled="true">
26-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
27-
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
28-
stroke-linecap="round" stroke-linejoin="round" class="icon icon-1">
29-
<path d="M15 6l-6 6l6 6" />
30-
</svg>
31-
</a>
18+
<a class="page-link " href="{{previous_link}}" tabindex="-1" aria-disabled="true">{{icon_img 'chevron-left'}}</a>
3219
{{/if}}
3320
</li>
3421
{{/if}}
@@ -46,12 +33,7 @@
4633
{{#if next_title}}
4734
<a class="page-link page-text" href="{{next_link}}" tabindex="-1" aria-disabled="true">{{next_title}}</a>
4835
{{else}}
49-
<a class="page-link" href="{{next_link}}" tabindex="-1" aria-disabled="true">
50-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
51-
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
52-
stroke-linecap="round" stroke-linejoin="round" class="icon icon-1">
53-
<path d="M9 6l6 6l-6 6" />
54-
</a>
36+
<a class="page-link" href="{{next_link}}" tabindex="-1" aria-disabled="true">{{icon_img 'chevron-right'}}</a>
5537
{{/if}}
5638
</li>
5739
{{/if}}
@@ -60,14 +42,7 @@
6042
{{#if last_title}}
6143
<a class="page-link page-text" href="{{last_link}}" tabindex="-1" aria-disabled="true">{{last_title}}</a>
6244
{{else}}
63-
<a class="page-link" href="{{last_link}}" tabindex="-1" aria-disabled="true">
64-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
65-
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
66-
stroke-linecap="round" stroke-linejoin="round" class="icon icon-1">
67-
<path d="M7 7l5 5l-5 5" />
68-
<path d="M13 7l5 5l-5 5" />
69-
</svg>
70-
</a>
45+
<a class="page-link" href="{{last_link}}" tabindex="-1" aria-disabled="true">{{icon_img 'chevrons-right'}}</a>
7146
{{/if}}
7247
</li>
7348
{{/if}}

0 commit comments

Comments
 (0)