sinatra-hexacta 1.7.13 → 1.7.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sinatra/public/js/app.js +8 -2
- data/lib/sinatra/views/inputs/paginator.slim +10 -7
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64483d4fcbd91ac280aa50720815045c081afd4f22ac58d51fc68150e61e46f2
|
4
|
+
data.tar.gz: 94e1904ccbf68d409b765230fc48dca5deb34a5a917bf66404d59db20e7a18db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3df5a184a1074b267979083c890950052ce24e194ad40a83039633c9e1a23921b193d53ecb33ccb24ec739eb0c924413ebb23aa62b401b4629977a79855606e
|
7
|
+
data.tar.gz: 1100cc8e9d0f68a4a7f316d00d9e9b713ab4132fa11c97396cca311bb3271072daba556a8abdf8f4adc01a4dd22da0831c9749cf2bd7f41cb1cc706043c7275d
|
@@ -684,6 +684,12 @@ function capitalize(word) {
|
|
684
684
|
if (word == "") {
|
685
685
|
return "";
|
686
686
|
} else {
|
687
|
-
|
687
|
+
const words = word.split(" ");
|
688
|
+
for (let i = 0; i < words.length; i++) {
|
689
|
+
if (words[i][0] != undefined) {
|
690
|
+
words[i] = words[i][0].toUpperCase() + words[i].substr(1);
|
691
|
+
}
|
692
|
+
}
|
693
|
+
return words.join(" ");
|
688
694
|
}
|
689
|
-
}
|
695
|
+
}
|
@@ -1,15 +1,18 @@
|
|
1
1
|
-if pages > 1
|
2
2
|
.row.text-center
|
3
|
+
div style="border-top: 1px solid #eeeeee;"
|
3
4
|
ul.pagination.no-margin style="vertical-align:middle"
|
4
5
|
li.page-first
|
5
6
|
a href="#" onclick="advance_search('#{url}',0,'#{format}');" «
|
6
|
-
-
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
-for i in (1..pages)
|
8
|
+
-if i < (offset + 5) && i > (offset - 5)
|
9
|
+
-if offset == i - 1
|
10
|
+
li.page-pre
|
11
|
+
a.bgm-blue.c-white #{i}
|
12
|
+
-else
|
13
|
+
li.page-pre
|
14
|
+
a href="#" onclick="advance_search('#{url}',#{i-1},'#{format}');" #{i}
|
10
15
|
ul.pagination.no-margin style="vertical-align:middle"
|
11
16
|
-if offset < pages -1
|
12
|
-
li.page-next
|
13
|
-
a href="#" onclick="advance_search('#{url}',#{offset + 1},'#{format}');" ›
|
14
17
|
li.page-last
|
15
|
-
a onclick="advance_search('#{url}',#{pages-1},'#{format}');"
|
18
|
+
a onclick="advance_search('#{url}',#{pages-1},'#{format}');" »
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-hexacta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Zanger
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2021-05-07 00:00:00.000000000 Z
|
@@ -251,7 +251,7 @@ homepage: https://rubygems.org/gems/sinatra-hexacta
|
|
251
251
|
licenses:
|
252
252
|
- MIT
|
253
253
|
metadata: {}
|
254
|
-
post_install_message:
|
254
|
+
post_install_message:
|
255
255
|
rdoc_options: []
|
256
256
|
require_paths:
|
257
257
|
- lib
|
@@ -266,8 +266,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
266
|
- !ruby/object:Gem::Version
|
267
267
|
version: '0'
|
268
268
|
requirements: []
|
269
|
-
rubygems_version: 3.0.
|
270
|
-
signing_key:
|
269
|
+
rubygems_version: 3.0.3.1
|
270
|
+
signing_key:
|
271
271
|
specification_version: 4
|
272
272
|
summary: Hexacta general tools!
|
273
273
|
test_files: []
|