<%= stylesheet_link_tag "/css/ui.dialog.css", "/themes/bento/css/style.css", "/css/software.css" %> <%= javascript_include_tag "http://static.opensuse.org/themes/bento/js/jquery.js", "jquery-ui-1.7.2.js", "jrails.js", "application.js" %> <%= javascript_include_tag "http://static.opensuse.org/c/javascript/common/langsel.js" %> <%= javascript_include_tag "/themes/bento/js/l10n/global-navigation-data-#{@lang}.js", "/themes/bento/js/global-navigation.js" %> <%= javascript_include_tag "http://www.google-analytics.com/ga.js" %> <%= yield :content_for_head %> <% unless flash.empty? %>
<% if flash[:success] or flash[:note] %>

<%=h flash[:success] %><%=h flash[:note] %>

<% end %> <% if flash[:warn] or flash[:error] %>

<%=h flash[:warn] %><%=h flash[:error] %>

<% end %>
<% end %>
<%= render :partial => 'search/search_box' %>

<%= @page_title -%> <% if @right_box == :search -%> <% if @release != "developer" -%> <%= _('switch to') -%> <%= link_to _('Development Version'), {:controller => "main", :action => "developer", :lang => @lang } -%> <% else -%> <%= _('switch to') -%> <%= link_to _('Released Version'), {:controller => "main", :action => "index", :lang => @lang } -%> <% end -%> <% end -%>

<%= @content_for_layout %>

<%= _("Popular Software") %>

<% top = top_downloads top1=top[0][:count] top10=top[-1][:count] top.each do |query| -%> <% queryclass=((Float(query[:count] - top10) / (top1 - top10)) * 5).round %> <%= query[:query] %> <% end -%>

<% if @right_box == :search -%> <% end -%>