diff --git a/app/views/spree/admin/overview/index.html.erb b/app/views/spree/admin/overview/index.html.erb deleted file mode 100644 index b94c46b..0000000 --- a/app/views/spree/admin/overview/index.html.erb +++ /dev/null @@ -1,170 +0,0 @@ -

<%= t("overview") %>

- -<%= hook :admin_dashboard do %> - <% if @show_dashboard %> -
-
- <%= hook :admin_dashboard_left do %> -
-

<%= t('best_selling_products') %>

-
-
- <% @best_selling_variants.each_with_index do |v,i| %> -   - -
<%= number_with_delimiter v[1] %> <%= t(:units) %>
- <% end %> -
- -

<%= t('top_grossing_products') %>

-
-
- <% @top_grossing_variants.each_with_index do |v,i| %> -   - -
<%= number_to_currency v[1], :precision => 0 %>
- <% end %> -
- -

<%= t('best_selling_taxons') %>

-
-
- <% @best_selling_taxons.each_with_index do |t,i| %> -   - -
<%= number_with_delimiter t[1] %> <%= t(:units) %>
- <% end %> -
- -
-
- <% end %> - <%= hook :admin_dashboard_center do %> -
-
-

<%= t('orders') %> <%= t('count') %> <%= t('by_day') %> (<%= t('last_7_days') %>)

- - - - - - - - - - - -
- - <%= t('orders') %> (<%= t('amount') %>) - | - - <%== t('items') %> (<%= t('amount') %>) - | - - <%= t('adjustments') %> - | - - <%= t('credits') %> -
- -
- -
- - <%= select_tag "orders_by_day_reports", options_for_select([[t('last_7_days'), "7_days"], [t('last_14_days'), "14_days"], [t('this_month'), "this_month"], - [t('last_month'), "last_month"], [t('this_year'), "this_year"], [t('last_year'), "last_year"] ], "7_days") %> - - <%= select_tag "orders_by_day_value", options_for_select({t('count') => 'Count', t('value') => 'Value'}, 'Count') %> -
-
-
- <% end %> - <%= hook :admin_dashboard_right do %> -
-

<%= t('last_5_orders') %>

- - - - - - - - - <% @last_five_orders.each do |order| %> - - - - - - <% end %> -
<%= t('user') %><%== t('items') %><%= t('total') %>
<%= truncate order[0], :length => 18 %><%= order[1] %><%= number_to_currency order[2] %>
- -

<%= t('5_biggest_spenders') %>

- - - - - - - - - <% @biggest_spenders.each do |order| %> - - - - - - <% end %> -
<%= t('email') %><%= t('ord_qty') %><%= t('ord_total') %>
<%= truncate order[0], :length => 18 %><%= order[1] %><%= number_to_currency order[2] %>
- -

<%= t('out_of_stock_products') %>

- - - - - - - <% @out_of_stock_products.each do |product| %> - - - - <% end %> -
<%= t('name') %>
<%= product.name %>
-
-
- <% end %> -

 

- <% else %> - <%= hook :admin_dashboard_welcome do %> - <%= raw t('overview_welcome') %> - <% end %> - <% end %> -<% end %> - -<% content_for :head do %> - <%= hook :admin_dashboard_javascript do %> - <% if @show_dashboard %> - - - <%= javascript_include_tag 'jqPlot/jquery.jqplot.min.js', 'jqPlot/plugins/jqplot.dateAxisRenderer.min.js', 'jqPlot/plugins/jqplot.highlighter.min.js', - 'jqPlot/plugins/jqplot.canvasAxisTickRenderer.min.js', 'jqPlot/plugins/jqplot.canvasTextRenderer.min.js', 'jqPlot/plugins/jqplot.canvasAxisLabelRenderer.min.js', - 'jqPlot/plugins/jqplot.pieRenderer.min.js', 'dashboard.js' %> - - <% end %> - <% end %> - - <%= hook :admin_dashboard_stylesheet do %> - <%= stylesheet_link_tag 'admin/dashboard.css' %> - <% end %> -<% end %>