From 93aa7354ee66f6f08e11185c066f08b7777c6614 Mon Sep 17 00:00:00 2001 From: Thomas Schmidt Date: Mon, 29 Nov 2010 17:49:40 +0100 Subject: [PATCH] add missing template --- app/views/statistic/index.html.erb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 app/views/statistic/index.html.erb diff --git a/app/views/statistic/index.html.erb b/app/views/statistic/index.html.erb new file mode 100644 index 0000000..87e7c9b --- /dev/null +++ b/app/views/statistic/index.html.erb @@ -0,0 +1,33 @@ +<% @page_title = _("Statistics") -%> + +

<%= _("Search Statistics:") %>

+ +

<%= _("Top searches:") %>

+ +
    +<% top = @top_searches -%> +<% top.each do |item| -%> +
  1. <%= h item[:query] %> (<%= h item[:count] %>)
  2. +<% end -%> +
+ +

<%= _("Top searches without hits:") %>

+ +
    +<% top = @failed_searches -%> +<% top.each do |item| -%> +
  1. <%= h item[:query] %> (<%= h item[:count] %>)
  2. +<% end -%> +
+ + +

<%= _("Download Statistics:") %>

+ +

<%= _("Top downloads:") %>

+ +
    +<% top = top_downloads -%> +<% top.each do |item| -%> +
  1. <%= h item[:query] %> (<%= h item[:count] %>)
  2. +<% end -%> +
\ No newline at end of file -- 2.1.4