clark_kent 0.10.1 → 0.10.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbf3313f9e29e87b92ae0164acca19ef853c20dcd5f56e026d7c1a4b0d95feef
|
4
|
+
data.tar.gz: e01e46a4d22389e43d2293ea2685e8d37dce4f6c673a4938dd38fda668eecd70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 859816b3ab0e3df20810639b7747c4f5376d01fd5a8ab22c7d5798149b27b168e072e6a14054ee13d7c435f2d1904decbe02d33bf02c2f58e2c704624b699384
|
7
|
+
data.tar.gz: e07dc2914b3a78a80a7409fa40938855bbb3335565602a4331eb221c644ebb2d3756c72e137de3159c15f66d597a0d4f5842e2ee3af81349e65f447d08235542
|
@@ -69,7 +69,7 @@ module ClarkKent
|
|
69
69
|
def print_button(rows, from_modal=false)
|
70
70
|
if rows
|
71
71
|
onclick_str = "window.print()"
|
72
|
-
onclick_str.prepend("$('#
|
72
|
+
onclick_str.prepend("$('#hooch-dismiss').click();") if from_modal
|
73
73
|
link_to 'Print',
|
74
74
|
'javascript:void(0)',
|
75
75
|
class: 'btn',
|
@@ -1,26 +1,13 @@
|
|
1
1
|
<% if rows %>
|
2
2
|
<% if rows.total_count > 50 %>
|
3
|
-
<%=
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
</div>
|
13
|
-
<div class="modal-body">
|
14
|
-
<p> You will only be printing the current page of results (<%= @report.resource_class.default_per_page %> of <%= @rows.total_count %> total results).
|
15
|
-
To print all results click the <strong>download full csv</strong> link at the bottom of the page.</p>
|
16
|
-
<div class="row-fluid" >
|
17
|
-
<div class="span8"></div>
|
18
|
-
<div class="span1">
|
19
|
-
<%= print_button(@rows, true) %>
|
20
|
-
</div>
|
21
|
-
<div class="span1">
|
22
|
-
<button type="button" class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
|
23
|
-
</div>
|
3
|
+
<div <%= modal_trigger("#print_report_modal", dismissable: true) %> class="link"> Print </div>
|
4
|
+
<div id="print_report_modal" class="hidden">
|
5
|
+
<p> You will only be printing the current page of results (<%= @report.resource_class.default_per_page %> of <%= @rows.total_count %> total results).
|
6
|
+
To print all results click the <strong>download full csv</strong> link at the bottom of the page.</p>
|
7
|
+
<div class="row-fluid" >
|
8
|
+
<div class="span8"></div>
|
9
|
+
<div class="span1">
|
10
|
+
<%= print_button(@rows, true) %>
|
24
11
|
</div>
|
25
12
|
</div>
|
26
13
|
</div>
|
data/lib/clark_kent/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clark_kent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Draut
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|