ifttt-gdash 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/views/dashboard.erb +9 -9
- data/views/detailed_dashboard.erb +8 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1a7c1fdee64cd7ac57e17a7239c6620c83d124f
|
4
|
+
data.tar.gz: f5c4996cc9a94c054ba1b92c989ca56e41e672e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 343bae5e82a87903ca8e34a8c37baf7da7add1e2355f2f371864fa86445a7c3fc6529e37c58acb2db6d3a0975a437d983f423a6a6e4470da34ea32c6696d62a8
|
7
|
+
data.tar.gz: 809fc4c849ef3ec45cef655c202d75c3ae6df85230610ab2e92d823687b00f540fb7246199ae1c6109e14da79df3fdadb689cf924657b7fb0612bfa0ccd3f5a5
|
data/views/dashboard.erb
CHANGED
@@ -13,13 +13,13 @@
|
|
13
13
|
<% i = grouped_graphs.rindex(graphs) * @graph_columns + graphs.rindex(graph) %>
|
14
14
|
<td>
|
15
15
|
<% if graph %>
|
16
|
-
<%
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
16
|
+
<% img_base_url = [@top_level[@params[:category]].graphite_render, graph[:graphite][:url].to_s.force_encoding('UTF-8')].join "?" %>
|
17
|
+
<% graphlot_url = URI.parse(img_base_url).tap{|x| x.path = "/graphlot/"}.to_s %>
|
18
|
+
<a href='<%= uri_to_details(i) %>'>
|
19
|
+
<%# We have to doubly-escape the title and description. The first escape will allow both the values %>
|
20
|
+
<%# to safely fit in the attribute (which prevents injecting HTML around the img tag). The second escape
|
21
|
+
<%# prevents using those properties to inject HTML into the popover itself. %>
|
22
|
+
<img src='<%= img_base_url %>' rel="<%= row == 1 ? 'popover-below' : 'popover-above' %>" title="<%= h(h(graph[:graphite][:title])) %>" data-content="<%= h(h(graph[:graphite][:description])) %><div><a href='<%= graphlot_url %>'>Go to Graphlot</a></div>"></a>
|
23
23
|
<%= graph_caption(graph) %>
|
24
24
|
<% end %>
|
25
25
|
</td>
|
@@ -33,14 +33,14 @@
|
|
33
33
|
$(function () {
|
34
34
|
$("img[rel=popover-above]")
|
35
35
|
.popover({
|
36
|
-
placement: "above", delayIn: 1000
|
36
|
+
placement: "above", delayIn: 1000, delayOut: 1000, html: true
|
37
37
|
})
|
38
38
|
})
|
39
39
|
|
40
40
|
$(function () {
|
41
41
|
$("img[rel=popover-below]")
|
42
42
|
.popover({
|
43
|
-
placement: "below", delayIn: 1000
|
43
|
+
placement: "below", delayIn: 1000, delayOut: 1000, html: true
|
44
44
|
})
|
45
45
|
})
|
46
46
|
</script>
|
@@ -8,11 +8,12 @@
|
|
8
8
|
<% graphrows.each do |graph| %>
|
9
9
|
<td>
|
10
10
|
<% if graph %>
|
11
|
-
<%
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
<% img_base_url = [@top_level[@params[:category]].graphite_render, graph[:url]].join "?" %>
|
12
|
+
<% graphlot_url = URI.parse(img_base_url).tap{|x| x.path = "/graphlot/"}.to_s %>
|
13
|
+
<%# We have to doubly-escape the title and description. The first escape will allow both the values %>
|
14
|
+
<%# to safely fit in the attribute (which prevents injecting HTML around the img tag). The second escape
|
15
|
+
<%# prevents using those properties to inject HTML into the popover itself. %>
|
16
|
+
<img src='<%= img_base_url %>' rel="<%= row == 1 ? 'popover-below' : 'popover-above' %>" title="<%= h(h(graph[:title])) %>" data-content="<%= h(h(graph[:description])) %><div><a href='<%= graphlot_url %>'>Go to Graphlot</a></div>">
|
16
17
|
<% end %>
|
17
18
|
</td>
|
18
19
|
<% end %>
|
@@ -25,7 +26,7 @@
|
|
25
26
|
$(function () {
|
26
27
|
$("img[rel=popover-above]")
|
27
28
|
.popover({
|
28
|
-
placement: "above", delayIn: 1000
|
29
|
+
placement: "above", delayIn: 1000, delayOut: 1000, html: true
|
29
30
|
})
|
30
31
|
.click(function(e) {
|
31
32
|
e.preventDefault()
|
@@ -35,7 +36,7 @@
|
|
35
36
|
$(function () {
|
36
37
|
$("img[rel=popover-below]")
|
37
38
|
.popover({
|
38
|
-
placement: "below", delayIn: 1000
|
39
|
+
placement: "below", delayIn: 1000, delayOut: 1000, html: true
|
39
40
|
})
|
40
41
|
.click(function(e) {
|
41
42
|
e.preventDefault()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ifttt-gdash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- R.I.Pienaar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|