metrify 0.2.2 → 0.2.3
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.
|
@@ -28,19 +28,6 @@ module MetrifyController
|
|
|
28
28
|
params[:unit] || :week
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
def graph_stat
|
|
32
|
-
|
|
33
|
-
prepare_for_graph
|
|
34
|
-
|
|
35
|
-
@stat_over_time = []
|
|
36
|
-
|
|
37
|
-
@stat_names = params[:stat_name]
|
|
38
|
-
|
|
39
|
-
respond_to do |format|
|
|
40
|
-
format.html {render 'graph_stats'}
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
|
|
44
31
|
def graph_stats
|
|
45
32
|
prepare_for_graph
|
|
46
33
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<%= render :partial => 'metrify/time_links', :locals => {:unit => @unit, :action => 'index'} %>
|
|
1
|
+
<%= render :partial => 'metrify/time_links', :locals => {:unit => @unit, :action => 'index', :stat_names => []} %>
|
|
2
2
|
|
|
3
3
|
<%= link_to "Graph All Stats", :action => "graph_stats", :unit=>@unit %>
|
|
4
4
|
<%= prev_site_stat = {} %>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<td>Finish Date</td>
|
|
10
10
|
<% sorted_stat_names.each do |s| %>
|
|
11
11
|
<td>
|
|
12
|
-
<%= link_to pretty_col_name(s, @metrify), :action => "
|
|
12
|
+
<%= link_to pretty_col_name(s, @metrify), :action => "graph_stats", :stat_names => s, :unit=>@unit %>
|
|
13
13
|
</td>
|
|
14
14
|
<% end %>
|
|
15
15
|
</tr>
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
});
|
|
37
37
|
</script>
|
|
38
38
|
|
|
39
|
-
<%= render :partial => 'metrify/time_links', :locals => {:unit => @unit, :action => 'graph_stats'} %>
|
|
39
|
+
<%= render :partial => 'metrify/time_links', :locals => {:unit => @unit, :action => 'graph_stats', :stat_names => @stat_names} %>
|
|
40
40
|
<%= link_to "Metrics Home", 'index' %>
|
|
41
41
|
<% showDateRangeOptions = ""
|
|
42
42
|
showDateRangeOptions += "$(\'dateRangeOptions\').style.display = \'block\';\n" %>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<% if unit != "month" %>
|
|
2
|
-
<%= link_to "Show By Month", :action => "#{action}", :unit=>"month" %>
|
|
1
|
+
<% if unit.to_s != "month" %>
|
|
2
|
+
<%= link_to "Show By Month", :action => "#{action}", :unit=>"month", :stat_names => stat_names %>
|
|
3
3
|
<% end %>
|
|
4
4
|
<% if unit.to_s != "week" %>
|
|
5
|
-
<%= link_to "Show By Week", :action => "#{action}", :unit=>"week" %>
|
|
5
|
+
<%= link_to "Show By Week", :action => "#{action}", :unit=>"week", :stat_names => stat_names %>
|
|
6
6
|
<% end %>
|
|
7
|
-
<% if unit != "day" %>
|
|
8
|
-
<%= link_to "Show By Day", :action => "#{action}", :unit=>"day" %>
|
|
7
|
+
<% if unit.to_s != "day" %>
|
|
8
|
+
<%= link_to "Show By Day", :action => "#{action}", :unit=>"day", :stat_names => stat_names %>
|
|
9
9
|
<% end %>
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metrify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 17
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.2.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Stephen Abrams
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-11-
|
|
18
|
+
date: 2010-11-12 00:00:00 -05:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|