sinatra-hexacta 1.7.14 → 1.7.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e86000ada810a4d9c6da30085fcce0c7110ed2d0021fce60403621191710bcf1
4
- data.tar.gz: 2d6399a6e611a630abff7309c9b7f644e0282b2ae24643b56b1d01da1ca2d4e8
3
+ metadata.gz: 7aabdd0fb02e996cf538594108b6423a1ba8e784628d48c75419d75ac09413aa
4
+ data.tar.gz: 410dda8303a38de19a2296887cf002c59ef38103464461418af3db349e551b0c
5
5
  SHA512:
6
- metadata.gz: 8e04301baf89a9dd388f8030875f6e908a5cbdf4a347392393331276c2b85f77ec1808b01ed4d4763f0b0298935a4b4fcec91281d565557780fc8eed58f86689
7
- data.tar.gz: 289221b4f09f731b5c8721128a2ad97e63de15dcc6d68c6e79f0b097aff44b93ecfe4af8a615124e712ff3fcc572082f2fc24acdfa6253b0c2f50e0c26a17355
6
+ metadata.gz: b1cdd4b009077b130502881ab36838a5c285c1cb02a4bb2fefdc969f657171b636967ef2d93dd6a8f5139ccce913f8f667d0ff0a9a6f3c3da90848edd39334ba
7
+ data.tar.gz: ade57d891f9f39c949fc4cee131f6a29c4d37ac1fbfff728127b98ee3d8ef69fbc61fb915da3453a704ef775dea7a34339fe9ab567e9c7e06188e89af3a6bab2
@@ -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
- -if offset > 0
7
- li.page-pre
8
- a href="#" onclick="advance_search('#{url}',#{offset - 1},'#{format}');" ‹
9
- input.form-control.text-center name="offset" type="number" max="#{pages}" min="1" value="#{offset+1}" style="vertical-align:middle;display:inline-block;width:100px"
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(#{report.id},#{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(#{report.id},#{pages-1},'#{format}');" »
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-hexacta
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.14
4
+ version: 1.7.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Zanger