- make the whole thing generic so it can also be used
[opensuse:software-o-o.git] / app / views / main / _livecd_block.rhtml
1 <%
2   via="http"
3   if arch == "32"
4      myid="i686"
5      archname="x86"
6   else
7      myid="x86_64"
8      archname="x86-64"
9   end
10   myid+="cd"
11   if torrent == 0 
12      myid+="http"
13   else
14      myid+="torrent" 
15      via="BitTorrent"
16   end
17 -%>
18       <div id="<%= myid %>" class="hide">
19         <h3><span class="media_description"><%= @releasename %> for <strong><%= archname %></strong> on <strong>CD</strong> via <strong><%= via %></strong></span></h3>
20         <div class="subcolumns">
21           <div class="c50l">
22             <div class="subcl">
23               <div class="media">
24                 <h3>Live CDs (choose one)</h3>
25                 <%= render(:partial => "download_link", :locals => { :iso => "kde-" + arch, :text => "Live CD <strong>KDE</strong>", :torrent => torrent } ) %> 
26                 <%= render(:partial => "download_link", :locals => { :iso => "gnome-" + arch, :text => "Live CD <strong>GNOME</strong>", :torrent => torrent } )%>      
27               </div>
28             </div>
29           </div>
30           <div class="c50l">
31             <div class="subcr">
32               <div class="media">
33                 
34                 <h3>Add-On CD (optional)</h3>
35                 <%= render(:partial => "download_link", :locals => { :iso => "lang-" + arch, :text => "Extra Languages", :torrent => torrent } )%>      
36                 <%= render(:partial => "download_link", :locals => { :iso => "nonoss", :text => "NonOSS CD", :torrent => torrent } )%>  
37               </div>
38             </div>
39           </div>
40         </div>
41         <%= render(:partial => "eula_link") %>
42         
43       </div>