Skip to content

Commit

Permalink
update to new layout
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Feb 16, 2012
1 parent 6bc86db commit 9cfff9d
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 27 deletions.
10 changes: 9 additions & 1 deletion app/views/error.rhtml
@@ -1,3 +1,11 @@
<% @page_title = "Error" -%>

<p><%=h @message %></p>
<div class="box box-shadow">
<h2 class="box-header">
<span class="alignleft"><%= @page_title -%></span></h2>
<div>

<p><%=h @message %></p>

</div>
</div>
16 changes: 13 additions & 3 deletions app/views/search/index.rhtml
Expand Up @@ -11,7 +11,17 @@
<% end %>
<% if @result -%>
<div id='result'>
<%= render :partial => 'search_result' %>

<div class="box box-shadow">
<h2 class="box-header">
<span class="alignleft"><%= @page_title -%></span></h2>
<div>

<div id='result'>
<%= render :partial => 'search_result' %>
</div>

</div>
</div>
<% end %>

<% end %>
54 changes: 31 additions & 23 deletions app/views/statistic/index.html.erb
@@ -1,33 +1,41 @@
<% @page_title = _("Statistics") -%>

<h2><%= _("Search Statistics:") %></h2>
<div class="box box-shadow">
<h2 class="box-header">
<span class="alignleft"><%= @page_title -%></span></h2>
<div>

<h3><%= _("Top searches:") %></h3>
<h2><%= _("Search Statistics:") %></h2>

<ol>
<% top = @top_searches -%>
<% top.each do |item| -%>
<li><%= h item[:query] %> (<%= h item[:count] %>)</li>
<% end -%>
</ol>
<h3><%= _("Top searches:") %></h3>

<h3><%= _("Top searches without hits:") %></h3>
<ol>
<% top = @top_searches -%>
<% top.each do |item| -%>
<li><%= h item[:query] %> (<%= h item[:count] %>)</li>
<% end -%>
</ol>

<ol>
<% top = @failed_searches -%>
<% top.each do |item| -%>
<li><%= h item[:query] %> (<%= h item[:count] %>)</li>
<% end -%>
</ol>
<h3><%= _("Top searches without hits:") %></h3>

<ol>
<% top = @failed_searches -%>
<% top.each do |item| -%>
<li><%= h item[:query] %> (<%= h item[:count] %>)</li>
<% end -%>
</ol>

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

<h3><%= _("Top downloads:") %></h3>
<h2><%= _("Download Statistics:") %></h2>

<ol>
<% top = top_downloads -%>
<% top.each do |item| -%>
<li><%= h item[:query] %> (<%= h item[:count] %>)</li>
<% end -%>
</ol>
<h3><%= _("Top downloads:") %></h3>

<ol>
<% top = top_downloads -%>
<% top.each do |item| -%>
<li><%= h item[:query] %> (<%= h item[:count] %>)</li>
<% end -%>
</ol>

</div>
</div>

0 comments on commit 9cfff9d

Please sign in to comment.