<%= stylesheet_link_tag "/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 "/themes/bento/js/l10n/global-navigation-data-#{@lang}.js", "/themes/bento/js/global-navigation.js" %> <%= yield :content_for_head %> <% unless flash.blank? %> <%= render(:partial => "layouts/flash", :object => flash) %> <% end %>
<%= render :partial => 'search/search_box' %>

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

<%= @content_for_layout %>

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

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

<%=_("Countdown")%>

" alt="<%=_("openSUSE Countdown")%>" width="130" height="130"/>

<%= _("Language") %>

<% # flags are from: http://www.famfamfam.com/lab/icons/flags/ -%>

<% LANGUAGES.each do |lang| %> <%= link_to(image_tag("/images/lang/lang_#{lang}.png", :alt => "#{lang}", :width => 16, :height => 11), :controller => :main, :action => :index, :lang => "#{lang}") %> <% end -%>

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