work on search dialog
[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="/css/ui.dialog.css" rel="stylesheet" type="text/css"/>
8   <link href="/css/style.css" rel="stylesheet" type="text/css"/>
9   <link href="/css/software.css" rel="stylesheet" type="text/css"/>
10   <link href="http://static.opensuse.org/hosts/software.o.o/images/favicon.ico" rel="shortcut icon" />
11   <%= javascript_include_tag "jquery-1.4.1.min.js", "jquery-ui-1.7.2.js", "jrails.js", "application.js"  %>
12   <script language="JavaScript" type="text/javascript" src="http://static.opensuse.org/c/javascript/common/langsel.js"></script>
13  </head>
14  <body>
15
16   <div id="header">
17     <div id="header-content" class="container_12">
18       <a id="header-logo" href="#home">
19         <img src="/images/header-logo.png" width="46" height="26" alt="Header Logo" />
20       </a>
21       <ul id="global-navigation">
22         <li><a href="http://software.opensuse.org/">Software</a></li>
23         <li><a href="http://build.opensuse.org/">Build</a></li>
24         <li><a href="http://wiki.opensuse.org/">Wiki</a></li>
25       </ul>
26     </div>
27   </div>
28
29   <div id="content" class="container_12 ui-oo-content-wrapper">
30     <div class="grid_9 alpha">
31
32       <div class="ui-oo-box-shadow grid_9">
33         <h2 class="box-header">
34           <div style="float: left;"><%= @page_title -%></div>
35           <% if @right_box == :search -%>
36             <div style="float: right; padding-right: 10px;">
37             <% if @release != "developer" -%>
38               <%= _('switch to') -%> <%= link_to _('Development Version'), {:controller => "main", :action => "developer", :lang => @lang } -%>
39             <% else -%>
40               <%= _('switch to') -%> <%= link_to _('Released Version'), {:controller => "main", :action => "index", :lang => @lang } -%>
41             <% end -%>
42             </div>
43           <% end -%>
44         </h2>
45         <div>
46         <%= @content_for_layout %>
47         </div>
48       </div>
49
50     </div>
51     <div class="grid_3 omega">
52
53       <div class="ui-oo-box-shadow grid_3 omega">
54         <h2 class="box-header"><%= _("Language") %></h2>
55         <div style="text-align: center;">
56           <%= link_to image_tag('/images/flag_en.png', :alt => 'English'), :action => :index, :lang => 'en' %>
57           <%= link_to image_tag('/images/flag_de.png', :alt => 'Deutsch'), :action => :index, :lang => 'de' %>
58           <%= link_to image_tag('/images/flag_fr.png', :alt => 'Français'), :action => :index, :lang => 'fr' %>
59         </div>
60       </div>
61
62       <div class="ui-oo-box-shadow grid_3 omega">
63         <% if @right_box == :search -%>
64           <h2 class="box-header"><%=_("Package Search")%></h2>
65           <div id="get_software">
66             <%= link_to "", {:controller => 'search'}, {:class => 'search_form', :style => 'display: block; width: 100%; height: 100px;', :title => _("Search Build Service")}  %>
67             <%=_("Search for and install additional software packages from the openSUSE Build Service.") %>
68           </div>
69         <% else -%>
70           <h2 class="box-header"><%=_("Get openSUSE")%></h2>
71           <div id="download_os">
72             <%= link_to "", {:controller => 'main', :action => :index}, {:class => 'download_os_link', :style => 'display: block; width: 100%; height: 100px;'}  %>
73           </div>
74         <% end -%>
75       </div>
76
77       <div class="ui-oo-box-shadow grid_3 omega">
78          <h2 class="box-header"><%=_("Getting Help")%></h2>
79          <ul class="navlist">
80            <li><a href="http://en.opensuse.org/Download_Help"><%=_("Download Help")%></a></li>
81            <li><a href="http://en.opensuse.org/Download_Help#Burn_the_ISO_Image.28s.29"><%=_("Burn CD/DVD Image(s)")%></a></li>
82            <li><a href="http://en.opensuse.org/Installation"><%=_("Installation Guides")%></a></li>
83            <li><a href="http://www.novell.com/documentation/opensuse112/"><%=_("Official Manuals")%></a></li>
84         </ul>
85       </div>
86
87       <div class="ui-oo-box-shadow grid_3 omega">
88         <h2 class="box-header"><%=_("Sponsored by")%></h2>
89         <!--<p style="color: #ccc; font-size: 0.8em; text-align: center;"><%=_("Platinum Sponsor")%></p>-->
90         <p style="color: #ccc; font-size: 0.8em; text-align: center;"><%=_("Gold Sponsor")%></p>
91         <p style="text-align: center;>
92           <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>
93           <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>
94         </p>
95         <p style="color: #ccc; font-size: 0.8em; text-align: center;"><%=_("Silver Sponsor")%></p>
96         <p style="text-align: center;">
97           <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>
98         </p>
99         <!--<p style="color: #ccc; font-size: 0.8em; text-align: center;"><%=_("Bronze Sponsor")%></p>-->
100       </div>
101
102       <div class="ui-oo-box-shadow grid_3 omega">
103         <h2 class="box-header"><%=_("Buy openSUSE")%></h2>
104           <div style="text-align: center; padding-left: 16px;">
105             <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>
106           </div>
107           <p style="text-align: center;">
108             <a href="<%= _("http://en.opensuse.org/Buy_openSUSE") %>" title="Buy openSUSE" style="text-decoration: none; font-weight: bold"><%=_("Buy openSUSE 11.2!")%></a>
109           </p>
110       </div>
111
112     </div>
113
114   </div>
115
116   <div id="footer" class="container_12">
117     <div id="footer-content" class="grid_12">
118     </div>
119     <div id="footer-legal" class="ui-oo-border-top grid_12">
120       <a href="http://en.opensuse.org/openSUSE:About">About openSUSE</a> |
121       <a href="http://en.opensuse.org/openSUSE:General_disclaimer">Legal information</a> |
122       <a href="mailto:webmaster@opensuse.org">Feedback</a>
123       <br/><br/>
124       <a href="http://www.novell.com/linux/"><img src="http://static.opensuse.org/c/images/common/founded_novell.gif" alt="Founded by Novell" /></a>
125     </div>
126   </div>
127
128   <% if @right_box == :search -%>
129   <!--[if lte IE 7]>
130     <script type="text/javascript">
131      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.")
132     </script>
133   <![endif]-->
134   <% end -%>
135
136  </body>
137 </html>