sinatra-hexacta 1.7.12 → 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: 4587ca3181eb451a3960b799cf333ca60765a5e51e16dc346511d1bdf985cbab
4
- data.tar.gz: fc47b861237b1ec09fe4cf74212a0f4237a006a3d77a407d59922d5196e9bc9f
3
+ metadata.gz: 7aabdd0fb02e996cf538594108b6423a1ba8e784628d48c75419d75ac09413aa
4
+ data.tar.gz: 410dda8303a38de19a2296887cf002c59ef38103464461418af3db349e551b0c
5
5
  SHA512:
6
- metadata.gz: ee70d0bc863fe250171158654a7d2f2f35f45792df1485c42a64838cd65c9295e8f9e76f50b75ef48a54b5ae696f4e64fde6b7190c9c9ab2df18de2a52a7f849
7
- data.tar.gz: 57b153fb80898c27dc0d125722dc2491904067b6e4f91a01e8420a3d8a9dc3b58ae0e04d7f207d4edea9cc10d0440738c0e6dc93c36134a335f9927bb8e34c55
6
+ metadata.gz: b1cdd4b009077b130502881ab36838a5c285c1cb02a4bb2fefdc969f657171b636967ef2d93dd6a8f5139ccce913f8f667d0ff0a9a6f3c3da90848edd39334ba
7
+ data.tar.gz: ade57d891f9f39c949fc4cee131f6a29c4d37ac1fbfff728127b98ee3d8ef69fbc61fb915da3453a704ef775dea7a34339fe9ab567e9c7e06188e89af3a6bab2
@@ -20,7 +20,7 @@ class Mail
20
20
 
21
21
  def to
22
22
  _receivers = {}
23
- @receivers.each { |user| _receivers[user.full_name] = "Persons" }
23
+ @receivers.each { |user| _receivers[user.hxt_id] = "User" }
24
24
  _receivers
25
25
  end
26
26
 
@@ -64,7 +64,7 @@ class MailSender
64
64
  for key in to_map.keys
65
65
  index = to_map.keys.index(key)
66
66
  values << ["ResourcesRequest[#{index}].TypeGroup", to_map[key]]
67
- values << ["ResourcesRequest[#{index}].Name", key]
67
+ values << ["ResourcesRequest[#{index}].Identifier", key]
68
68
  end
69
69
  values
70
70
  end
@@ -684,6 +684,12 @@ function capitalize(word) {
684
684
  if (word == "") {
685
685
  return "";
686
686
  } else {
687
- return word[0].toUpperCase() + word.slice(1).toLowerCase();
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
- -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,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.12
4
+ version: 1.7.15
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.6
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: []