merge search into mainpage, fix flags
[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", "/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 "jquery-1.4.1.min.js", "jquery-ui-1.7.2.js", "jrails.js", "application.js"  %>
10   <script language="JavaScript" type="text/javascript" src="http://static.opensuse.org/c/javascript/common/langsel.js"></script>
11  </head>
12  <body>
13
14   <div id="header">
15     <div id="header-content" class="container_12">
16       <a id="header-logo" href="#home">
17         <%= image_tag '/images/header-logo.png', :width => 46, :height => 26, :alt => _("Header Logo") %>
18       </a>
19       <ul id="global-navigation">
20         <li><a href="http://software.opensuse.org/"><%= _("Software") %></a></li>
21         <li><a href="http://build.opensuse.org/"><%= _("Build") %></a></li>
22         <li><a href="http://wiki.opensuse.org/"><%= _("Wiki") %></a></li>
23       </ul>
24     </div>
25   </div>
26
27   <div id="content" class="container_12 ui-oo-content-wrapper">
28     <div class="grid_9 alpha">
29
30       <div class="ui-oo-box-shadow grid_9 alpha">
31         <h2 class="box-header"><%=_("Package Search")%></h2>
32         <div id="get_software">
33             <p><%=_("Search and install software packages from the openSUSE Build Service:") %></p>
34             <div id="search_form">
35               <% form_tag ( {:controller => 'search'}, :method => :get ) do %>
36                 <%= text_field_tag 'q', @query, :size => 40 %>
37                 <div id="form_control">
38                   <%= select_tag 'project', options_for_select(baseproject_list_for_select, (@baseproject or default_baseproject)) %>
39                   <%= submit_tag _('Search'), :name => nil, :class => 'download_buttonClass' %>
40                 </div>
41             <% end -%>
42             </div>
43         </div>
44       </div>
45
46       <div class="ui-oo-box-shadow grid_9 alpha">
47         <h2 class="box-header">
48           <div style="float: left;"><%= @page_title -%></div>
49           <% if @right_box == :search -%>
50             <div style="float: right; padding-right: 10px;">
51             <% if @release != "developer" -%>
52               <%= _('switch to') -%> <%= link_to _('Development Version'), {:controller => "main", :action => "developer", :lang => @lang } -%>
53             <% else -%>
54               <%= _('switch to') -%> <%= link_to _('Released Version'), {:controller => "main", :action => "index", :lang => @lang } -%>
55             <% end -%>
56             </div>
57           <% end -%>
58         </h2>
59         <div>
60         <%= @content_for_layout %>
61         </div>
62       </div>
63
64     </div>
65     <div class="grid_3 omega">
66
67       <div class="ui-oo-box-shadow grid_3 omega">
68         <h2 class="box-header"><%= _("Language") %></h2>
69         <div style="text-align: center;">
70           <%= %w[bg cs da de en es fi fr].map{ |i|
71                 link_to(image_tag("/images/lang_#{i}.png", :alt => "#{i}"), :controller => :main, :action => :index, :lang => "#{i}") + "\n"
72               }
73           %>
74         </div>
75         <div style="text-align: center;">
76           <%= %w[hu it ja ko lt nb nl pl].map{ |i|
77                 link_to(image_tag("/images/lang_#{i}.png", :alt => "#{i}"), :controller => :main, :action => :index, :lang => "#{i}") + "\n"
78               }
79           %>
80         </div>
81         <div style="text-align: center;">
82           <%= %w[pt_BR ru sk uk wa zh_TW].map{ |i|
83                 link_to(image_tag("/images/lang_#{i}.png", :alt => "#{i}"), :controller => :main, :action => :index, :lang => "#{i}") + "\n"
84               }
85           %>
86         </div>
87       </div>
88
89       <div class="ui-oo-box-shadow grid_3 omega">
90          <h2 class="box-header"><%=_("Getting Help")%></h2>
91          <ul class="navlist">
92            <li><a href="http://en.opensuse.org/Download_Help"><%=_("Download Help")%></a></li>
93            <li><a href="http://en.opensuse.org/Download_Help#Burn_the_ISO_Image.28s.29"><%=_("Burn CD/DVD Image(s)")%></a></li>
94            <li><a href="http://en.opensuse.org/Installation"><%=_("Installation Guides")%></a></li>
95            <li><a href="http://www.novell.com/documentation/opensuse112/"><%=_("Official Manuals")%></a></li>
96            <li><a href="http://en.opensuse.org/Additional_YaST_Package_Repositories"><%=_("Package Repositories")%></a></li>
97         </ul>
98       </div>
99
100       <div class="ui-oo-box-shadow grid_3 omega">
101         <h2 class="box-header"><%=_("Sponsored by")%></h2>
102         <!--<p style="color: #ccc; font-size: 0.8em; text-align: center;"><%=_("Platinum Sponsor")%></p>-->
103         <p style="color: #ccc; font-size: 0.8em; text-align: center;"><%=_("Gold Sponsor")%></p>
104         <p style="text-align: center;>
105           <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>
106           <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>
107         </p>
108         <p style="color: #ccc; font-size: 0.8em; text-align: center;"><%=_("Silver Sponsor")%></p>
109         <p style="text-align: center;">
110           <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>
111         </p>
112         <!--<p style="color: #ccc; font-size: 0.8em; text-align: center;"><%=_("Bronze Sponsor")%></p>-->
113       </div>
114
115       <div class="ui-oo-box-shadow grid_3 omega">
116         <h2 class="box-header"><%=_("Buy openSUSE")%></h2>
117           <div style="text-align: center; padding-left: 16px;">
118             <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>
119           </div>
120           <p style="text-align: center;">
121             <a href="<%= _("http://en.opensuse.org/Buy_openSUSE") %>" title="Buy openSUSE" style="text-decoration: none; font-weight: bold"><%=_("Buy openSUSE 11.2!")%></a>
122           </p>
123       </div>
124
125     </div>
126
127   </div>
128
129   <div id="footer" class="container_12">
130     <div id="footer-content" class="grid_12">
131     </div>
132     <div id="footer-legal" class="ui-oo-border-top grid_12">
133       <a href="http://en.opensuse.org/openSUSE:About">About openSUSE</a> |
134       <a href="http://en.opensuse.org/openSUSE:General_disclaimer">Legal information</a> |
135       <a href="mailto:webmaster@opensuse.org">Feedback</a>
136       <br/><br/>
137       <a href="http://www.novell.com/linux/"><img src="http://static.opensuse.org/c/images/common/founded_novell.gif" alt="Founded by Novell" /></a>
138     </div>
139   </div>
140
141   <% if @right_box == :search -%>
142   <!--[if lte IE 7]>
143     <script type="text/javascript">
144      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.")
145     </script>
146   <![endif]-->
147   <% end -%>
148
149  </body>
150 </html>