always refer to the controller
[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   <link href="http://static.opensuse.org/hosts/software.o.o/css/download.css" rel="stylesheet" type="text/css"/>
8   <link href="/css/local/download2.css" rel="stylesheet" type="text/css"/>
9   <link href="http://static.opensuse.org/hosts/software.o.o/images/favicon.ico" rel="shortcut icon" />
10   <!--[if lte IE 7]>
11   <link href="http://static.opensuse.org/common-yaml2/css/explorer/iehacks_2col_left.css" rel="stylesheet" type="text/css"/>
12   <link href="http://static.opensuse.org/common-yaml2/css/explorer/iehacks_opensuse.css" rel="stylesheet" type="text/css"/>
13   <link href="http://static.opensuse.org/hosts/software.o.o/css/explorer/iehacks_obs_search.css" rel="stylesheet" type="text/css"/>
14
15   <![endif]-->
16   <%= javascript_include_tag :defaults %>
17   <script type="text/javascript" src="http://static.opensuse.org/c/javascript/common/langsel.js"></script>
18   <script type="text/javascript" src="http://www.google-analytics.com/ga.js"></script>
19   <script type="text/javascript">
20   //<![CDATA[
21    try {
22    var pageTracker = _gat._getTracker("UA-3367212-3");
23    pageTracker._setDomainName(".opensuse.org");
24    pageTracker._trackPageview();
25    } catch(err) {}
26    //]]>
27   </script>
28  </head>
29  <body>
30   <div id="page_margins" style="width: 1008px; margin: 0 auto;">
31    <div id="page" class="hold_floats">
32     <!-- Begin 2 column main part -->
33     <div id="main">
34      <!-- Begin left column -->
35      <div id="col1">
36       <div id="col1_content" class="clearfix">
37        <!-- Begin Logo -->
38        <div class="grey_box" id="logo">
39         <div class="box_content_row">
40          <div class="box_content" id="logo_content">
41           <a href="/"><img src="http://static.opensuse.org/c/images/common/geeko.jpg" alt="openSUSE" /></a>
42          </div>
43         </div>
44         <div class="box_bottom_row">
45          <div class="box_left"></div>
46          <div class="box_right"></div>
47         </div>
48        </div>
49        <!-- End Logo -->
50        <!-- Begin openSUSE navigation -->
51        <div class="grey_box">
52         <div class="box_top_row">
53          <div class="box_left"></div>
54          <div class="box_right"></div>
55         </div>
56         <div class="box_title_row">
57          <div class="box_title">
58           openSUSE
59          </div>
60         </div>
61         <div class="box_content">
62         <ul class="navlist">
63           <li style="list-style-image: url(http://static.opensuse.org/c/css/common/images/liDot_download.png)"><a href="http://software.opensuse.org/"><%=_("Get Software")%></a></li>
64           <li style="list-style-image: url(http://static.opensuse.org/c/css/common/images/liDot_wiki.png)">
65             <% wikilang = 'en'
66                wikilang = @lang if ['de', 'cs', 'es', 'fr', 'it', 'el', 'pl', 'ja', 'vi'].include? @lang %>
67             <a href="http://<%= wikilang %>.opensuse.org/"><%=_("Wiki")%></a>
68           </li>
69           <li style="list-style-image: url(http://static.opensuse.org/c/css/common/images/liDot_build.png)"><a href="http://build.opensuse.org/"><%=_("Build Software")%></a></li>
70           <li style="list-style-image: url(http://static.opensuse.org/c/css/common/images/liDot_community.png)"><a href="http://users.opensuse.org/"><%=_("User Directory")%></a></li>  
71           <li style="list-style-image: url(http://static.opensuse.org/c/css/common/images/liDot_wiki.png)"><a href="http://features.opensuse.org/"><%=_("Features")%></a></li>
72           <li style="list-style-image: url(http://static.opensuse.org/c/css/common/images/liDot_wiki.png)"><a href="http://news.opensuse.org/"><%=_("News")%></a></li>
73           <li style="list-style-image: url(http://static.opensuse.org/c/css/common/images/liDot_wiki.png)"><a href="http://forums.opensuse.org"><%=_("Forums")%></a></li>
74           <li style="list-style-image: url(http://static.opensuse.org/c/css/common/images/liDot_wiki.png)"><a href="http://shop.opensuse.org/"><%=_("Shop")%></a></li>
75          </ul>
76         </div>
77         <div class="box_bottom_row">
78          <div class="box_left"></div>
79          <div class="box_right"></div>
80         </div>
81        </div>
82        <br />
83        <!-- End openSUSE navigation -->
84        <!-- Begin custom navigation -->
85        <div class="orange_box">
86         <div class="box_top_row">
87          <div class="box_left"></div>
88          <div class="box_right"></div>
89         </div>
90         <div class="box_title_row">
91          <div class="box_title">
92           <%=_("Getting Help")%>
93          </div>
94         </div>
95         <div class="box_content">
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          </ul>
102         </div>
103         <div class="box_bottom_row">
104          <div class="box_left"></div>
105          <div class="box_right"></div>
106         </div>
107        </div>
108        <br />
109        <div class="orange_box">
110         <div class="box_top_row">
111          <div class="box_left"></div>
112          <div class="box_right"></div>
113         </div>
114         <div class="box_title_row">
115          <div class="box_title">
116           <%=_("Software")%>
117          </div>
118         </div>
119         <div class="box_content">
120          <ul class="navlist">
121           <li><%= link_to _('Software Search'), {:controller => "search", :action => "index"} %></li>
122           <li><a href="http://en.opensuse.org/Additional_YaST_Package_Repositories"><%=_("Package Repositories")%></a></li>
123           <li><a href="http://download.opensuse.org/update/"><%=_("Update Repositories")%></a></li>
124           <li><a href="http://download.opensuse.org/source/distribution/11.2/"><%=_("Source Repository")%></a></li>
125         </ul>
126         </div>
127         <div class="box_bottom_row">
128          <div class="box_left"></div>
129          <div class="box_right"></div>
130         </div>
131        </div>
132        <br />
133        <div class="orange_box">
134         <div class="box_top_row">
135          <div class="box_left"></div>
136          <div class="box_right"></div>
137         </div>
138         <div class="box_title_row">
139          <div class="box_title">
140           <%=_("Other Options")%>
141          </div>
142         </div>
143         <div class="box_content">
144          <ul class="navlist">
145           <li><a href="http://en.opensuse.org/Mirror_Selection"><%=_("Mirrors")%></a></li>
146           <% if @release != "developer" %>
147              <li><%= link_to _('Development Version'), {:controller => "main", :action => "developer", :lang => @lang } %></li>
148           <% else %>
149              <li><%= link_to _('Released Version'), {:controller => "main", :action => "index", :lang => @lang } %></li>
150           <% end %>
151          </ul>
152         </div>
153         <div class="box_bottom_row">
154          <div class="box_left"></div>
155          <div class="box_right"></div>
156         </div>
157        </div>
158        <br />
159        <!-- End custom navigation -->
160
161        <div class="orange_box" id="p-lang">
162         <div class="box_top_row">
163          <div class="box_left"></div>
164          <div class="box_right"></div>
165         </div>
166
167         <div class="box_title_row">
168          <div class="box_title">
169           <%= _("In other languages") %>
170          </div>
171         </div>
172
173         <div class="box_content">
174          <ul class="navlist">
175           <li><%= link_to 'Deutsch', :controller => "main", :action => :index, :lang => 'de' %></li>
176           <li><%= link_to "English", :controller => "main", :action => :index, :lang => 'en' %></li>
177           <li><%= link_to 'Fran├žais', :controller => "main", :action => :index, :lang => 'fr' %></li>
178          </ul>
179         </div>
180         <div class="box_bottom_row">
181          <div class="box_left"></div>
182          <div class="box_right"></div>
183         </div>
184        </div>
185        <br />
186
187       </div>
188      </div>
189      <!-- End left column -->
190      <!-- Begin right cloumn -->
191      <div id="col3">
192       <div id="col3_content" class="clearfix">
193        <div class="orange_box_double" id="banner_orange">
194         <div class="box_content_row">
195          <div class="box_content" id="banner_content">
196           <div id="slogan">
197      <img src="http://static.opensuse.org/hosts/software.o.o/images/get.png" alt="><%=_("Get it")%>" />
198           </div>
199          </div>
200         </div>
201         <div class="box_bottom_row">
202          <div class="box_left"></div>
203          <div class="box_right"></div>
204         </div>
205        </div>
206        <br style="clear: right;" />
207        <div id="contentarea">
208         <div>
209          <div class="subcolumns">
210           <div class="c75l">
211            <div class="subcl">
212             <div class="grey_box_double" style="float:left; width: 100%">
213              <div class="box_top_row">
214               <div class="box_left"></div>
215               <div class="box_right"></div>
216              </div>
217              <div class="box_title_row">
218               <div class="box_title">
219 <!-- temporary disabled until translations exist
220                <div id="langsel" class="hide">
221                 <form action="" name="langsel">
222                  <select name="lang" onchange="langRedirect()">
223                   <option value="">In other languages</option>
224                   <option value="">Deutsch</option>
225                   <option value="">Fran├žais</option>
226                  </select>
227                 </form>
228                </div>
229 -->
230                <div id="page_actions">
231                 <b style="font-size:120%"><%=@page_title%></b>
232                </div>
233               </div>
234              </div>
235              <div class="box_content" id="bodyContent">
236                <!-- Begin Content area-->
237                <%= @content_for_layout %>
238                <!-- End Content area -->
239              </div>
240              <div class="box_footer_row">
241               <div id="page_footer" class="box_footer">
242                <!-- Begin Footer -->
243                This site uses the <a href="http://www.yaml.de">YAML</a> CSS framework.
244                <br />
245                <a href="http://en.opensuse.org/openSUSE:About">About openSUSE</a> | 
246                <a href="http://en.opensuse.org/openSUSE:General_disclaimer">Legal information</a> | 
247                <a href="mailto:webmaster@opensuse.org">Feedback</a>
248                <br />
249                <br />
250                <a href="http://www.novell.com/linux/"><img src="http://static.opensuse.org/c/images/common/founded_novell.gif" alt="Founded by Novell" /></a>
251                <!-- End Footer -->
252               </div>
253              </div>
254              <div class="box_bottom_row">
255               <div class="box_left"></div>
256               <div class="box_right"></div>
257              </div>
258             </div>
259            </div>
260           </div>
261           <!-- Begin right content column -->
262           <div class="c25r">
263            <div class="subcr">
264              <% if @right_box == :search -%>
265              <div class="orange_box">
266                <div class="box_top_row">
267                  <div class="box_left"></div>
268                  <div class="box_right"></div>
269                </div>
270                <div class="box_title_row">
271                  <div class="box_title">
272                    <%=_("Package Search")%>
273                  </div>
274                </div>
275              <div class="box_content" id="search_os">
276              <div id="get_software">
277                     <%= link_to "", {:controller => 'search'}, {:class => 'search_form', :style => 'display: block; width: 100%; height: 100px;', :title => _("Search Build Service")}  %>
278                     <%=_("Search for and install additional software packages from the openSUSE Build Service.")%>
279              </div>
280            </div>
281            <div class="box_bottom_row">
282              <div class="box_left"></div>
283              <div class="box_right"></div>
284            </div>
285            </div>
286                 <br />
287                 <% else -%>
288
289            <div class="orange_box">
290         <div class="box_top_row">
291           <div class="box_left"></div>
292           <div class="box_right"></div>
293         </div>
294         <div class="box_title_row">
295           <div class="box_title">
296              <%=_("Get openSUSE")%>
297           </div>
298          </div>
299          <div class="box_content" id="get_os">
300             <div id="download_os">
301                     <%= link_to "", {:controller => 'main', :action => :index}, {:class => 'download_os_link', :style => 'display: block; width: 100%; height: 100px;'}  %>
302       </div>
303     </div>
304     <div class="box_bottom_row">
305       <div class="box_left"></div>
306           <div class="box_right"></div>
307         </div>
308       </div>
309             <br />
310             <% end -%>
311             <div class="orange_box">
312              <div class="box_top_row">
313               <div class="box_left"></div>
314               <div class="box_right"></div>
315              </div>
316              <div class="box_title_row">
317               <div class="box_title">
318               <%=_("Sponsored by")%>
319               </div>
320              </div>
321              <div class="box_content" id="platin_sponsor">
322               <div style="text-align: center; padding: 7px 0; overflow: hidden;">
323                 
324                 <p style="color: #ccc; font-size: 0.8em;"><%=_("Gold Sponsor")%></p>
325                 <p>
326                   <a href="http://en.opensuse.org/Sponsors"><img src="http://static.opensuse.org/c/images/common/Amd.png" title="<%=_("Sponsored by AMD")%>" alt="<%=_("Sponsored by AMD")%>"/></a>
327                   <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>
328                 </p>
329                 <p style="color: #ccc; font-size: 0.8em;"><%=_("Silver Sponsor")%></p>
330                 <p>
331                   <a class="external text" rel="nofollow" title="http://en.opensuse.org/Sponsors" href="http://en.opensuse.org/Sponsors"><img alt="B1-systems.jpg" src="http://static.opensuse.org/c/images/common/B1-systems-1.jpg"/></a>
332                 </p>
333               </div>
334              </div>
335              <div class="box_bottom_row">
336               <div class="box_left"></div>
337               <div class="box_right"></div>
338              </div>
339             </div>
340             <br />
341
342             <div class="orange_box">
343              <div class="box_top_row">
344               <div class="box_left"></div>
345               <div class="box_right"></div>
346              </div>
347              <div class="box_title_row">
348               <div class="box_title">
349                <%=_("Buy openSUSE")%>
350               </div>
351              </div>
352              <div class="box_content" id="buy">
353                <div style="text-align: center; padding: 15px 0;">
354                  <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>
355                </div>
356                <p style="text-align: center">
357                 <a href="<%= _("http://en.opensuse.org/Buy_openSUSE") %>" title="Buy openSUSE" style="text-decoration: none; font-weight: bold"><%=_("Buy openSUSE 11.2!")%></a>
358                </p>
359              </div>
360              <div class="box_bottom_row">
361               <div class="box_left"></div>
362               <div class="box_right"></div>
363              </div>
364             </div>
365             <br />
366
367            </div>
368           </div>
369           <!-- End right content column -->
370          </div>
371         </div>
372        </div>
373       </div>
374       <!-- IE Column Clearing -->
375       <div id="ie_clearing">&nbsp;</div>
376       <!-- Ende: IE Column Clearing -->
377      </div>
378      <!-- End middle column -->
379     </div>
380     <!-- End 2 cloumn main part -->
381    </div>
382   </div>
383   
384   
385   <% if @right_box == :search -%>
386   <!--[if lte IE 7]>
387     <script type="text/javascript">
388      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.")
389     </script>
390   <![endif]-->
391   <% end -%>
392
393  </body>
394 </html>