acts_as_dashboard 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/acts_as_dashboard.gemspec +1 -1
- data/generators/dashboard/templates/dashboard.css +86 -66
- data/generators/dashboard/templates/show.html.erb +70 -67
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/acts_as_dashboard.gemspec
CHANGED
@@ -1,66 +1,86 @@
|
|
1
|
-
body {
|
2
|
-
background-color: black;
|
3
|
-
color: white;
|
4
|
-
}
|
5
|
-
|
6
|
-
.dashboard-clear {
|
7
|
-
clear: both;
|
8
|
-
}
|
9
|
-
|
10
|
-
#dashboard {
|
11
|
-
width: 100%;
|
12
|
-
}
|
13
|
-
#dashboard .widget {
|
14
|
-
}
|
15
|
-
|
16
|
-
#dashboard .dashboard-numbers {
|
17
|
-
}
|
18
|
-
#dashboard .dashboard-numbers .number-widget {
|
19
|
-
float: left;
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
#dashboard .dashboard-short-messages .short-messages-widget .widget-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
1
|
+
body {
|
2
|
+
background-color: black;
|
3
|
+
color: white;
|
4
|
+
}
|
5
|
+
|
6
|
+
.dashboard-clear {
|
7
|
+
clear: both;
|
8
|
+
}
|
9
|
+
|
10
|
+
#dashboard {
|
11
|
+
width: 100%;
|
12
|
+
}
|
13
|
+
#dashboard .widget {
|
14
|
+
}
|
15
|
+
|
16
|
+
#dashboard .dashboard-numbers {
|
17
|
+
}
|
18
|
+
#dashboard .dashboard-numbers .number-widget {
|
19
|
+
float: left;
|
20
|
+
margin: 1em;
|
21
|
+
text-align: center;
|
22
|
+
}
|
23
|
+
#dashboard .dashboard-numbers .number-widget .widget-title {
|
24
|
+
padding: 0.25em;
|
25
|
+
border-top: 1px solid #666666;
|
26
|
+
border-bottom: none;
|
27
|
+
border-left: 1px solid #666666;
|
28
|
+
border-right: 1px solid #666666;
|
29
|
+
}
|
30
|
+
#dashboard .dashboard-numbers .number-widget .widget-data {
|
31
|
+
font-size: 4em;
|
32
|
+
border-top: none;
|
33
|
+
border-bottom: 1px solid #666666;
|
34
|
+
border-left: 1px solid #666666;
|
35
|
+
border-right: 1px solid #666666;
|
36
|
+
}
|
37
|
+
|
38
|
+
/* dashboard-short-message is not complete */
|
39
|
+
#dashboard .dashboard-short-messages {
|
40
|
+
}
|
41
|
+
#dashboard .dashboard-short-messages .short-messages-widget {
|
42
|
+
float: left;
|
43
|
+
margin: 1em;
|
44
|
+
}
|
45
|
+
#dashboard .dashboard-short-messages .short-messages-widget .widget-title {
|
46
|
+
padding: 0.5em;
|
47
|
+
text-align: center;
|
48
|
+
font-weight: bold;
|
49
|
+
}
|
50
|
+
#dashboard .dashboard-short-messages .short-messages-widget .widget-data {
|
51
|
+
margin: 0;
|
52
|
+
padding: 0;
|
53
|
+
}
|
54
|
+
#dashboard .dashboard-short-messages .short-messages-widget .widget-data ul {
|
55
|
+
margin: 0;
|
56
|
+
padding: 0;
|
57
|
+
}
|
58
|
+
#dashboard .dashboard-short-messages .short-messages-widget .widget-data li {
|
59
|
+
margin-top: 4px;
|
60
|
+
padding: 0.25em;
|
61
|
+
list-style-type: none;
|
62
|
+
font-size: 0.8em;
|
63
|
+
}
|
64
|
+
|
65
|
+
#dashboard .dashboard-line-graphs {
|
66
|
+
}
|
67
|
+
#dashboard .dashboard-line-graphs .line-graph-widget {
|
68
|
+
float: left;
|
69
|
+
margin: 1em;
|
70
|
+
}
|
71
|
+
#dashboard .dashboard-line-graphs .line-graph-widget .widget-title {
|
72
|
+
text-align: center;
|
73
|
+
border-top: 1px solid #666666;
|
74
|
+
border-bottom: none;
|
75
|
+
border-left: 1px solid #666666;
|
76
|
+
border-right: 1px solid #666666;
|
77
|
+
}
|
78
|
+
#dashboard .dashboard-line-graphs .line-graph-widget .widget-data {
|
79
|
+
xborder: none;
|
80
|
+
border-top: none;
|
81
|
+
border-bottom: 1px solid #666666;
|
82
|
+
border-left: 1px solid #666666;
|
83
|
+
border-right: 1px solid #666666;
|
84
|
+
padding-right: 1.5em;
|
85
|
+
}
|
86
|
+
|
@@ -1,67 +1,70 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
-
|
3
|
-
<html>
|
4
|
-
|
5
|
-
<head>
|
6
|
-
<style type="text/css">
|
7
|
-
<%# @dashboard_css %>
|
8
|
-
</style>
|
9
|
-
|
10
|
-
<%= javascript_include_tag 'http://code.jquery.com/jquery-1.4.2.min.js' %>
|
11
|
-
<%= javascript_include_tag '
|
12
|
-
<%= javascript_include_tag '
|
13
|
-
<%= javascript_include_tag '
|
14
|
-
<%= javascript_include_tag '
|
15
|
-
|
16
|
-
|
17
|
-
<%= stylesheet_link_tag 'jquery.
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
<div class='dashboard-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
<div class='dashboard-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
</
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
|
3
|
+
<html>
|
4
|
+
|
5
|
+
<head>
|
6
|
+
<style type="text/css">
|
7
|
+
<%# @dashboard_css %>
|
8
|
+
</style>
|
9
|
+
|
10
|
+
<%= javascript_include_tag 'http://code.jquery.com/jquery-1.4.2.min.js' %>
|
11
|
+
<%= javascript_include_tag 'jquery-ui/js/jquery-ui-1.8.2.custom.min.js' %>
|
12
|
+
<%= javascript_include_tag 'http://plugins.jquery.com/files/jquery.timers-1.2.js.txt' %>
|
13
|
+
<%= javascript_include_tag 'js.class-2.1.4/min/core.js' %>
|
14
|
+
<%= javascript_include_tag 'jqplot-0.9.7/jquery.jqplot.min.js' %>
|
15
|
+
<%= javascript_include_tag 'dashboard' %>
|
16
|
+
|
17
|
+
<%= stylesheet_link_tag 'jquery-ui/css/ui-darkness/jquery-ui-1.8.2.custom.css' %>
|
18
|
+
<%= stylesheet_link_tag 'dashboard' %>
|
19
|
+
<%= stylesheet_link_tag 'jquery.jqplot.min.css' %>
|
20
|
+
|
21
|
+
<script type='text/javascript'>
|
22
|
+
jQuery(document).ready(function() {
|
23
|
+
dashboard = new Dashboard({basePath: '<%= @dashboard_path -%>'});
|
24
|
+
json_widgets = '<%= @json_widgets -%>';
|
25
|
+
|
26
|
+
buildTheDashboard();
|
27
|
+
});
|
28
|
+
</script>
|
29
|
+
|
30
|
+
<script type='text/javascript'>
|
31
|
+
<%# @dashboard_js %>
|
32
|
+
</script>
|
33
|
+
</head>
|
34
|
+
|
35
|
+
<body>
|
36
|
+
<div id='dashboard'>
|
37
|
+
<div class='dashboard-numbers'>
|
38
|
+
<div class='ui-widget widget-template' style='display: none;'>
|
39
|
+
<div class="ui-widget-header ui-corner-tl ui-corner-tr widget-title"></div>
|
40
|
+
<div class="ui-widget-content ui-corner-bl ui-corner-br"><div class="widget-data"></div></div>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<div class='dashboard-clear'></div>
|
45
|
+
|
46
|
+
<div class='dashboard-short-messages'>
|
47
|
+
<div class='ui-widget widget-template' style='display: none;'>
|
48
|
+
<div class="ui-widget-header ui-corner-all widget-title"></div>
|
49
|
+
<div class="widget-data">
|
50
|
+
<ul>
|
51
|
+
<li class='ui-widget-content ui-corner-all widget-data widget-data-template' style='display: none;'></li>
|
52
|
+
</ul>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div class='dashboard-clear'></div>
|
58
|
+
|
59
|
+
<div class='dashboard-line-graphs'>
|
60
|
+
<div class='ui-widget widget-template' style='display: none;'>
|
61
|
+
<div class='ui-widget-header ui-corner-tl ui-corner-tr widget-title'></div>
|
62
|
+
<div class='ui-widget-content ui-corner-bl ui-corner-br widget-data'></div>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<div class='dashboard-clear'></div>
|
67
|
+
</div>
|
68
|
+
</body>
|
69
|
+
|
70
|
+
</html>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_dashboard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 4
|
9
|
+
- 0
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nick Hoffman
|