diff --git a/app/views/stats/actions_completion_time_data.html.erb b/app/views/stats/actions_completion_time_data.html.erb deleted file mode 100644 index c70912f0..00000000 --- a/app/views/stats/actions_completion_time_data.html.erb +++ /dev/null @@ -1,26 +0,0 @@ -<%- -time_labels = Array.new(@count){ |i| "#{i}-#{i+1}" } -time_labels[0] = t('stats.within_one') -time_labels[@count] = "> #{@count}" --%> -&title=<%= t('stats.action_completion_time_title') %>,{font-size:16},& -&y_legend=<%= t('stats.legend.actions') %>,10,0x8010A0& -&y2_legend=<%= t('stats.legend.percentage') %>,10,0xFF0000& -&x_legend=<%= t('stats.legend.running_time') %>,12,0x736AFF& -&y_ticks=5,10,5& -&filled_bar=50,0x9933CC,0x8010A0& -&values=<%= @actions_completion_time_array.join(",")%>& -&line_2=2,0xFF0000& -&values_2=<%= @cum_percent_done.join(",")%>& -&x_labels=<%= time_labels.join(",")%>& -&y_min=0& -<% -# add one to @max for people who have no actions completed yet. -# OpenFlashChart cannot handle y_max=0 --%> -&y_max=<%=1+@max_actions+@max_actions/10-%>& -&show_y2=true& -&y2_lines=2& -&y2_min=0& -&y2_max=100& -&x_label_style=9,,2,1& diff --git a/app/views/stats/actions_done_last12months_data.html.erb b/app/views/stats/actions_done_last12months_data.html.erb deleted file mode 100644 index c6ca9176..00000000 --- a/app/views/stats/actions_done_last12months_data.html.erb +++ /dev/null @@ -1,31 +0,0 @@ -<%- - url = url_for :controller => 'stats', :action => 'actions_done_last_years' --%> -&title=<%= t('stats.actions_lastyear_title') %>,{font-size:16},& -&y_legend=<%= t('stats.legend.number_of_actions') %>,12,0x736AFF& -&x_legend=<%= t('stats.legend.months_ago') %>,12,0x736AFF& -&y_ticks=5,10,5& -&filled_bar=50,0x9933CC,0x8010A0,<%= t('stats.labels.created')%>,9& -&filled_bar_2=50,0x0066CC,0x0066CC,<%= t('stats.labels.completed') %>,9& -&line_3=2,0x00FF00, <%= t('stats.labels.avg_created') %>, 9& -&line_4=2,0xFF0000, <%= t('stats.labels.avg_completed') %>, 9& -&line_5=2,0x007700, <%= t('stats.labels.month_avg_created', :months => 3) %>, 9& -&line_6=2,0xAA0000, <%= t('stats.labels.month_avg_completed', :months => 3) %>, 9& -&line_7=1,0xAA0000& -&line_8=1,0x007700& -&values=<%= @actions_created_last12months_array.join(",")%>& -&links=<%= Array.new(13,url).join(",") %>& -&links_2=<%= Array.new(13,url).join(",") %>& -&values_2=<%= @actions_done_last12months_array.join(",")%>& -&values_3=<%= @created_count_array.join(",")%>& -&values_4=<%= @done_count_array.join(",")%>& -&values_5=<%= @actions_created_avg_last12months_array.join(",")%>& -&values_6=<%= @actions_done_avg_last12months_array.join(",")%>& -&values_7=<%= @interpolated_actions_created_this_month%>,<%=@actions_done_avg_last12months_array[1]%>& -&values_8=<%= @interpolated_actions_done_this_month%>,<%=@actions_created_avg_last12months_array[1]%>& -&x_labels=<%= array_of_month_labels(@done_count_array.size).join(",")%>& -&y_min=0& -<% # add one to @max for people who have no actions completed yet. - # OpenFlashChart cannot handle y_max=0 -%> -&y_max=<%=@max+@max/10+1-%>& -&x_label_style=9,,2,& diff --git a/app/views/stats/actions_done_last30days_data.html.erb b/app/views/stats/actions_done_last30days_data.html.erb deleted file mode 100644 index 11991146..00000000 --- a/app/views/stats/actions_done_last30days_data.html.erb +++ /dev/null @@ -1,26 +0,0 @@ -<%- -created_count_array = Array.new(30){ |i| @actions_created_last30days.size/30.0 } -done_count_array = Array.new(30){ |i| @actions_done_last30days.size/30.0 } -# TODO: make the strftime i18n proof -time_labels = Array.new(30){ |i| l(Time.zone.now-i.days, :format => :stats) } --%> -&title=<%= t('stats.actions_30days_title') %>,{font-size:16},& -&y_legend=<%= t('stats.legend.number_of_actions') %>,12,0x736AFF& -&x_legend=<%= t('stats.legend.number_of_days') %>,12,0x736AFF& -&y_ticks=5,10,5& -&filled_bar=50,0x9933CC,0x8010A0,<%= t('stats.labels.created') %>,9& -&filled_bar_2=50,0x0066CC,0x0066CC,<%= t('stats.labels.completed') %>,9& -&line_3=3,0x00FF00, <%= t('stats.labels.avg_created') %>, 9& -&line_4=3,0xFF0000, <%= t('stats.labels.avg_completed') %>, 9& -&values=<%= @actions_created_last30days_array.join(",")%>& -&values_2=<%= @actions_done_last30days_array.join(",")%>& -&values_3=<%= created_count_array.join(",")%>& -&values_4=<%= done_count_array.join(",")%>& -&x_labels=<%= time_labels.join(",")%>& -&y_min=0& -<% # max + 10% for some extra space at the top - # add one to @max for people who have no actions completed yet. - # OpenFlashChart cannot handle y_max=0 --%> -&y_max=<%=@max+@max/10+1 -%>& -&x_label_style=9,,2,3& \ No newline at end of file diff --git a/app/views/stats/actions_open_per_week_data.html.erb b/app/views/stats/actions_open_per_week_data.html.erb deleted file mode 100644 index e9e93bed..00000000 --- a/app/views/stats/actions_open_per_week_data.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -<%- -time_labels = Array.new(@count+1){ |i| "#{i}-#{i+1}" } -time_labels[0] = "< 1" --%> -&title=<%= t('stats.open_per_week') %>,{font-size:16},& -&y_legend=<%= t('stats.open_per_week_legend.actions') %>,10,0x736AFF& -&x_legend=<%= t('stats.open_per_week_legend.weeks') %>,11,0x736AFF& -&y_ticks=5,10,5& -&filled_bar=50,0x9933CC,0x8010A0& -&values=<%= @actions_open_per_week_array.join(",") -%>& -&x_labels=<%= time_labels.join(",")%>& -&y_min=0& -<% - # add one to @max for people who have no actions completed yet. - # OpenFlashChart cannot handle y_max=0 --%> -&y_max=<%=1+@max_actions+@max_actions/10-%>& -&x_label_style=9,,2,2& \ No newline at end of file diff --git a/app/views/stats/actions_running_time_data.html.erb b/app/views/stats/actions_running_time_data.html.erb deleted file mode 100644 index 6126b31a..00000000 --- a/app/views/stats/actions_running_time_data.html.erb +++ /dev/null @@ -1,30 +0,0 @@ -<%- -url_labels = Array.new(@count){ |i| url_for(:controller => 'stats', :action => 'show_selected_actions_from_chart', :index => i, :id=> "art") } -url_labels[@count]=url_for(:controller => 'stats', :action => 'show_selected_actions_from_chart', :index => @count, :id=> "art_end") - -time_labels = Array.new(@count){ |i| "#{i}-#{i+1}" } -time_labels[0] = "< 1" -time_labels[@count] = "> #{@count}" --%> -&title=<%= t('stats.running_time_all') %>,{font-size:16},& -&y_legend=<%= t('stats.running_time_all_legend.actions') %>,10,0x736AFF& -&y2_legend=<%= t('stats.running_time_all_legend.percentage') %>,10,0xFF0000& -&x_legend=<%= t('stats.running_time_all_legend.running_time') %>,11,0x736AFF& -&y_ticks=5,10,5& -&filled_bar=50,0x9933CC,0x8010A0& -&values=<%= @actions_running_time_array.join(",") -%>& -&links=<%= url_labels.join(",") %>& -&line_2=2,0xFF0000& -&values_2=<%= @cum_percent_done.join(",") %>& -&x_labels=<%= time_labels.join(",") %> & -&y_min=0& -<% - # add one to @max for people who have no actions completed yet. - # OpenFlashChart cannot handle y_max=0 --%> -&y_max=<%=1+@max_actions+@max_actions/10-%>& -&x_label_style=9,,2,2& -&show_y2=true& -&y2_lines=2& -&y2_min=0& -&y2_max=100& diff --git a/app/views/stats/actions_visible_running_time_data.html.erb b/app/views/stats/actions_visible_running_time_data.html.erb deleted file mode 100644 index c68969ec..00000000 --- a/app/views/stats/actions_visible_running_time_data.html.erb +++ /dev/null @@ -1,30 +0,0 @@ -<%- -url_labels = Array.new(@count){ |i| url_for(:controller => 'stats', :action => 'show_selected_actions_from_chart', :index => i, :id=> "avrt") } -url_labels[@count]=url_for(:controller => 'stats', :action => 'show_selected_actions_from_chart', :index => @count, :id=> "avrt_end") - -time_labels = Array.new(@count){ |i| "#{i}-#{i+1}" } -time_labels[0] = "< 1" -time_labels[@count] = "> #{@count}" --%> -&title=<%= t('stats.current_running_time_of_incomplete_visible_actions') %>,{font-size:16},& -&y_legend=<%= t('stats.running_time_legend.actions') %>,10,0x736AFF& -&y2_legend=<%= t('stats.running_time_legend.percentage') %>,10,0xFF0000& -&x_legend=<%= t('stats.running_time_legend.weeks') %>,11,0x736AFF& -&y_ticks=5,10,5& -&filled_bar=50,0x9933CC,0x8010A0& -&values=<%= @actions_running_time_array.join(",") -%>& -&links=<%= url_labels.join(",") %>& -&line_2=2,0xFF0000& -&values_2=<%= @cum_percent_done.join(",") -%>& -&x_labels=<%= time_labels.join(",")%>& -&y_min=0& -<% - # add one to @max for people who have no actions completed yet. - # OpenFlashChart cannot handle y_max=0 --%> -&y_max=<%=1+@max_actions+@max_actions/10-%>& -&x_label_style=9,,2,2& -&show_y2=true& -&y2_lines=2& -&y2_min=0& -&y2_max=100&