no longer read the prject cookie in rails
[opensuse:software-o-o.git] / app / views / layouts / application.rhtml
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3  <head>
4   <title>Software.openSUSE.org</title>
5   <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6
7   <%= stylesheet_link_tag "/css/ui.dialog.css", "/themes/bento/css/style.css", "/css/software.css" %>
8   <link href="http://static.opensuse.org/hosts/software.o.o/images/favicon.ico" rel="shortcut icon" />
9   <%= javascript_include_tag "http://static.opensuse.org/themes/bento/js/jquery.js", "jquery-ui-1.7.2.js", "jrails.js", "application.js"  %>
10   <%= javascript_include_tag "http://static.opensuse.org/c/javascript/common/langsel.js" %>
11   <%= javascript_include_tag "/themes/bento/js/l10n/global-navigation-data-" + @lang + ".js", "/themes/bento/js/global-navigation.js" %>
12   <%= javascript_include_tag "http://www.google-analytics.com/ga.js" %>
13  </head>
14  <body>
15
16   <div id="header">
17     <div id="header-content" class="container_12">
18       <a id="header-logo" href="/">
19         <%= image_tag '/themes/bento/images/header-logo.png', :width => 46, :height => 26, :alt => _("Header Logo") %>
20       </a>
21       <ul id="global-navigation">
22         <li id="item-downloads"><a href="http://opensuse.org/sitemap#downloads"><%= _("Downloads") %></a></li>
23         <li id="item-support"><a href="http://opensuse.org/sitemap#support"><%= _("Support") %></a></li>
24         <li id="item-community"><a href="http://opensuse.org/sitemap#community"><%= _("Community") %></a></li>
25         <li id="item-development"><a href="http://opensuse.org/sitemap#development"><%= _("Development") %></a></li>
26       </ul>
27     </div>
28   </div>
29
30   <div id="content" class="container_12 content-wrapper">
31     <div class="grid_9 alpha">
32
33       <div class="box box-shadow grid_9 alpha">
34         <h2 class="box-header"><%=_("Package Search")%></h2>
35         <div id="get_software">
36             <p><%=_("Search and install software packages from the openSUSE Build Service:") %></p>
37             <div id="search_form">
38               <% form_tag( {:controller => 'search'}, :method => :get ) do %>
39                 <%= text_field_tag 'q', @query, :size => 40 %>
40                 <div id="form_control">
41                   <%= select_tag 'baseproject', options_for_select(baseproject_list_for_select, (@baseproject or default_baseproject)) %>
42                   <%= submit_tag _('Search'), :name => nil, :class => 'download_buttonClass' %>
43                 </div>
44             <% end -%>
45             </div>
46         </div>
47       </div>
48
49       <%= setup_baseproject %>
50
51       <div class="box box-shadow grid_9 alpha">
52         <h2 class="box-header">
53           <div style="float: left;"><%= @page_title -%></div>
54           <% if @right_box == :search -%>
55             <div style="float: right; padding-right: 10px;">
56             <% if @release != "developer" -%>
57               <%= _('switch to') -%> <%= link_to _('Development Version'), {:controller => "main", :action => "developer", :lang => @lang } -%>
58             <% else -%>
59               <%= _('switch to') -%> <%= link_to _('Released Version'), {:controller => "main", :action => "index", :lang => @lang } -%>
60             <% end -%>
61             </div>
62           <% end -%>
63         </h2>
64         <div>
65         <%= @content_for_layout %>
66         </div>
67       </div>
68
69     </div>
70     <div class="grid_3 omega">
71
72       <div class="box box-shadow grid_3 omega">
73         <h2 class="box-header"><%= _("Language") %></h2>
74         <div style="text-align: center;">
75           <%= %w[bg cs da de en es fi fr].map{ |i|
76                 link_to(image_tag("/images/lang_#{i}.png", :alt => "#{i}"), :controller => :main, :action => :index, :lang => "#{i}") + "\n"
77               }
78           %>
79         </div>
80         <div style="text-align: center;">
81           <%= %w[hu it ja ko lt nb nl pl].map{ |i|
82                 link_to(image_tag("/images/lang_#{i}.png", :alt => "#{i}"), :controller => :main, :action => :index, :lang => "#{i}") + "\n"
83               }
84           %>
85         </div>
86         <div style="text-align: center;">
87           <%= %w[pt_BR ru sk uk wa zh_TW].map{ |i|
88                 link_to(image_tag("/images/lang_#{i}.png", :alt => "#{i}"), :controller => :main, :action => :index, :lang => "#{i}") + "\n"
89               }
90           %>
91         </div>
92       </div>
93
94       <div class="box box-shadow grid_3 omega">
95          <h2 class="box-header"><%=_("Getting Help")%></h2>
96          <ul class="navlist">
97            <li><a href="http://en.opensuse.org/Download_Help"><%=_("Download Help")%></a></li>
98            <li><a href="http://en.opensuse.org/Download_Help#Burn_the_ISO_Image.28s.29"><%=_("Burn CD/DVD Image(s)")%></a></li>
99            <li><a href="http://en.opensuse.org/Installation"><%=_("Installation Guides")%></a></li>
100            <li><a href="http://www.novell.com/documentation/opensuse112/"><%=_("Official Manuals")%></a></li>
101            <li><a href="http://en.opensuse.org/Additional_YaST_Package_Repositories"><%=_("Package Repositories")%></a></li>
102         </ul>
103       </div>
104
105       <div class="box box-shadow grid_3 omega">
106         <h2 class="box-header"><%=_("Sponsored by")%></h2>
107         <!--<p style="color: #ccc; font-size: 0.8em; text-align: center;"><%=_("Platinum Sponsor")%></p>-->
108         <p style="color: #ccc; font-size: 0.8em; text-align: center;"><%=_("Gold Sponsor")%></p>
109         <p style="text-align: center;>
110           <a href="http://en.opensuse.org/Sponsors"><img title="<%=_("Sponsored by AMD")%>" alt="<%=_("Sponsored by AMD")%>" src="http://static.opensuse.org/c/images/common/Amd.png"/></a>
111           <a href="http://en.opensuse.org/Sponsors"><img title="<%=_("Sponsored by: IP Exchange")%>" alt="<%=_("Sponsored by: IP Exchange")%>" src="http://static.opensuse.org/c/images/common/Ip-exchange.gif"/></a>
112         </p>
113         <p style="color: #ccc; font-size: 0.8em; text-align: center;"><%=_("Silver Sponsor")%></p>
114         <p style="text-align: center;">
115           <a href="http://en.opensuse.org/Sponsors"><img title="<%=_("Sponsored by: B1 Systems")%>" alt="<%=_("Sponsored by: B1 Systems")%>" src="http://static.opensuse.org/c/images/common/B1-systems-1.jpg"/></a>
116         </p>
117         <!--<p style="color: #ccc; font-size: 0.8em; text-align: center;"><%=_("Bronze Sponsor")%></p>-->
118       </div>
119
120       <div class="box box-shadow grid_3 omega">
121         <h2 class="box-header"><%=_("Buy openSUSE")%></h2>
122           <div style="text-align: center; padding-left: 16px;">
123             <a href="<%= _("http://en.opensuse.org/Buy_openSUSE") %>"><img src="http://static.opensuse.org/c/images/common/openSUSE11.2_Box.jpg" title="<%=_("Buy openSUSE 11.2")%>" alt="<%=_("Buy openSUSE 11.2")%>"/></a>
124           </div>
125           <p style="text-align: center;">
126             <a href="<%= _("http://en.opensuse.org/Buy_openSUSE") %>" title="Buy openSUSE" style="text-decoration: none; font-weight: bold"><%=_("Buy openSUSE 11.2!")%></a>
127           </p>
128       </div>
129
130     </div>
131
132   </div>
133
134   <div id="footer" class="container_12">
135     <div id="footer-content" class="grid_12">
136     </div>
137     <div id="footer-legal" class="border-top grid_12">
138       <a href="http://en.opensuse.org/openSUSE:About">About openSUSE</a> |
139       <a href="http://en.opensuse.org/openSUSE:General_disclaimer">Legal information</a> |
140       <a href="mailto:webmaster@opensuse.org">Feedback</a>
141       <br/><br/>
142       <a href="http://www.novell.com/linux/"><img src="http://static.opensuse.org/c/images/common/founded_novell.gif" alt="Founded by Novell" /></a>
143     </div>
144   </div>
145
146   <% if @right_box == :search -%>
147   <!--[if lte IE 7]>
148     <script type="text/javascript">
149      alert("Please note that the Internet Explorer (all versions) is not capable of handling\nfiles larger than 4 GB.\n\nThis means that you will not be able to download the DVD images using IE.\n\nPlease use a different browser or a downloadmanager.")
150     </script>
151   <![endif]-->
152   <% end -%>
153
154  </body>
155 </html>