swedbank-pay-design-guide-jekyll-theme 2.6.3 → 2.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bdc6e4565f97716989a9c9776d8d902ec64ee0510e1fc97e2e16c8a4f3013eb6
4
- data.tar.gz: 6e514b4f0766ae4a557286c1cff6121aec2efa72cbfbf8564f0b24c18fe33ea4
3
+ metadata.gz: 52446f61fd008d59e42aea8446f2d2bcc525162c92b8597cccbe7f6a45a9e3fb
4
+ data.tar.gz: 6f5b99aa7d3656daa1e250038dade71fc8d447eea83a71e27b77b2d431929560
5
5
  SHA512:
6
- metadata.gz: ba85da3667596af6c91433776223589d7743ae96f8937c68b780d1603645a8eb99b88e8ac956fe16a0ba571ee91584730407966dba6421badc9caba7c0ac831e
7
- data.tar.gz: bc0ef019dedc1db9a1c636ad7dd7287d6892837e6639df0b53890de35fa13b53d512ad0a7ff9be1b2fcd6b47b7bdf19eff2089f7c98920a9e5f50e9ff7e91cd2
6
+ metadata.gz: 8758cda5992cdb88daa067651422a63e7e7a538b211a005b88c0d11e38c0e675f41f9a5461647801e0a5090cd7efcf7219dabadfde5f19edad9092019e75b8d3
7
+ data.tar.gz: 55cb6e81fa733e0255e56862431880e191eebe851254984a584bfe8c98cf9d2fe8a51ce72de59cb464fce501fdd4e73fc6f943d8f7eb2560e06af64262f1cf5d
@@ -105,8 +105,16 @@
105
105
  if (c != 0) {
106
106
  if (set.showTitleCount && tipuesearch_t_c == 0) { var title = document.title; document.title = '(' + c + ') ' + title; tipuesearch_t_c++; }
107
107
  if (show_replace) { out += '<div id="tipue_search_warning">' + tipuesearch_string_2 + ' ' + d + '. ' + tipuesearch_string_3 + ' <a id="tipue_search_replaced">' + d_r + '</a></div>'; }
108
- if (c == 1) { out += '<div id="tipue_search_results_count">' + tipuesearch_string_4; }
109
- else { c_c = c.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); out += '<div id="tipue_search_results_count">' + c_c + ' ' + tipuesearch_string_5; }
108
+ if (c == 1) {
109
+ out += '<div id="tipue_search_results_count">' + tipuesearch_string_4;
110
+ }
111
+ else {
112
+ if (found[c - 1] && !found[c - 1].desc) {
113
+ c = c - 1; // If the last item has no description, we remove it from the count
114
+ }
115
+ c_c = c.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
116
+ out += '<div id="tipue_search_results_count">' + c_c + ' ' + tipuesearch_string_5;
117
+ }
110
118
  if (set.showTime) {
111
119
  var endTimer = new Date().getTime();
112
120
  var time = (endTimer - startTimer) / 1000;
@@ -163,9 +171,13 @@
163
171
  var p_b_high = pages;
164
172
  var p_b_low = 0;
165
173
  var hasPagination = false
166
- if (pages > set.footerPages) { p_b_high = set.footerPages; hasPagination = true; } //limit pagination to set.footerPages
174
+ if (pages > set.footerPages) {
175
+ p_b_high = set.footerPages; //limit pagination to set.footerPages
176
+ hasPagination = true;
177
+ }
167
178
  var page = (start / set.show);
168
179
  out += '<nav><div id="tipue_search_foot"><ul id="tipue_search_foot_boxes">';
180
+
169
181
  if (start > 0) {
170
182
  p_b_low = p_b_low + 1;
171
183
  }
@@ -180,12 +192,17 @@
180
192
  p_b_high = p_b_high - diff;
181
193
  }
182
194
  }
195
+ console.log('p_b_low: ' + p_b_low + ', p_b_high: ' + p_b_high);
196
+
183
197
  if (start > 0) { //tipuesearch_string_6
184
198
  if (hasPagination && page !== 0) {
185
199
  out += '<li role="navigation"><a class="tipue_search_foot_box" accesskey="b" id="' + (start - set.show) + '_' + replace + '"><i class="swepay-icon-chevron-left" aria-label="back"></i></a></li>';
186
200
  }
187
201
  out += '<li role="navigation"><a class="tipue_search_foot_box" id="' + (0) + '_' + replace + '">' + (1) + '</a></li>';
188
- if (hasPagination && p_b_low >= 2) {
202
+ if (hasPagination && p_b_low === 2) {
203
+ out += '<li role="navigation"><a class="tipue_search_foot_box" id="' + (1) + '_' + replace + '">' + (2) + '</a></li>';
204
+ }
205
+ if (hasPagination && p_b_low > 2) {
189
206
  out += '<li role="navigation"><span>...</span></li>';
190
207
  }
191
208
  }
@@ -206,7 +223,9 @@
206
223
  if (hasPagination && p_b_high < (pages - 2)) {
207
224
  out += '<li role="navigation"><span>...</span></li>';
208
225
  }
209
- out += '<li role="navigation"><a class="tipue_search_foot_box" id="' + ((pages - 1) * set.show) + '_' + replace + '">' + (pages) + '</a></li>';
226
+ if (hasPagination) {
227
+ out += '<li role="navigation"><a class="tipue_search_foot_box" id="' + ((pages - 1) * set.show) + '_' + replace + '">' + (pages) + '</a></li>';
228
+ }
210
229
  if (hasPagination && (page + 1) !== pages) {
211
230
  out += '<li role="navigation"><a class="tipue_search_foot_box" accesskey="m" id="' + (start + set.show) + '_' + replace + '"><i class="swepay-icon-chevron-right" aria-label="forward"></i></a></li>';
212
231
  }
data/lib/gem_version.rb CHANGED
@@ -4,7 +4,7 @@ module Gem
4
4
  # Gem Specification
5
5
  class Specification
6
6
  def self.gem_version
7
- '2.6.3'
7
+ '2.6.4'
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swedbank-pay-design-guide-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.3
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swedbank Pay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-20 00:00:00.000000000 Z
11
+ date: 2025-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday