acts_as_dashboard 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.4.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{acts_as_dashboard}
8
- s.version = "0.3.3"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nick Hoffman"]
@@ -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
- padding: 0.5em;
21
- margin: 1em;
22
- text-align: center;
23
- }
24
- #dashboard .dashboard-numbers .number-widget .widget-title {
25
- font-weight: bold;
26
- font-size: 1em;
27
- }
28
- #dashboard .dashboard-numbers .number-widget .widget-data {
29
- font-size: 4em;
30
- }
31
-
32
- /* dashboard-short-message is not complete */
33
- #dashboard .dashboard-short-messages {
34
- }
35
- #dashboard .dashboard-short-messages .short-messages-widget {
36
- float: left;
37
- margin: 1em;
38
- }
39
- #dashboard .dashboard-short-messages .short-messages-widget .widget-title {
40
- border: 2px solid white;
41
- padding: 0.5em;
42
- text-align: center;
43
- font-weight: bold;
44
- }
45
- #dashboard .dashboard-short-messages .short-messages-widget .widget-data {
46
- margin: 0;
47
- padding: 0;
48
- }
49
- #dashboard .dashboard-short-messages .short-messages-widget .widget-data ul {
50
- margin: 0;
51
- padding: 0;
52
- }
53
- #dashboard .dashboard-short-messages .short-messages-widget .widget-data li {
54
- border: 1px solid white;
55
- margin-top: 4px;
56
- padding: 0.5em;
57
- list-style-type: none;
58
- font-size: 0.8em;
59
- }
60
-
61
- #dashboard .dashboard-line-graphs {
62
- }
63
- #dashboard .dashboard-line-graphs .line-graph-widget {
64
- float: left;
65
- margin: 1em;
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 'http://plugins.jquery.com/files/jquery.timers-1.2.js.txt' %>
12
- <%= javascript_include_tag 'js.class-2.1.4/min/core.js' %>
13
- <%= javascript_include_tag 'jqplot-0.9.7/jquery.jqplot.min.js' %>
14
- <%= javascript_include_tag 'dashboard' %>
15
-
16
- <%= stylesheet_link_tag 'dashboard' %>
17
- <%= stylesheet_link_tag 'jquery.jqplot.min.css' %>
18
-
19
- <script type='text/javascript'>
20
- jQuery(document).ready(function() {
21
- dashboard = new Dashboard({basePath: '<%= @dashboard_path -%>'});
22
- json_widgets = '<%= @json_widgets -%>';
23
-
24
- buildTheDashboard();
25
- });
26
- </script>
27
-
28
- <script type='text/javascript'>
29
- <%# @dashboard_js %>
30
- </script>
31
- </head>
32
-
33
- <body>
34
- <div id='dashboard'>
35
- <div class='dashboard-numbers'>
36
- <div class='widget-template' style='display: none;'>
37
- <div class="widget-title"></div>
38
- <div class="widget-data"></div>
39
- </div>
40
- </div>
41
-
42
- <div class='dashboard-clear'></div>
43
-
44
- <div class='dashboard-short-messages'>
45
- <div class='widget-template' style='display: none;'>
46
- <div class="widget-title"></div>
47
- <div class="widget-data">
48
- <ul>
49
- <li class='widget-data-template' style='display: none;'></li>
50
- </ul>
51
- </div>
52
- </div>
53
- </div>
54
-
55
- <div class='dashboard-clear'></div>
56
-
57
- <div class='dashboard-line-graphs'>
58
- <div class='widget-template' style='display: none;'>
59
- <div class='widget-data'></div>
60
- </div>
61
- </div>
62
-
63
- <div class='dashboard-clear'></div>
64
- </div>
65
- </body>
66
-
67
- </html>
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: 21
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 3
9
- - 3
10
- version: 0.3.3
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nick Hoffman