- make the whole thing generic so it can also be used
[opensuse:software-o-o.git] / app / views / main / _dvd_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+="dvd"
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>DVD</strong> via <strong><%= via %></strong></span></h3>
20         <div class="media">
21           
22           <div class="c50l">
23             <div class="subc">
24               <h3>Installation</h3>
25               <%= render(:partial => "download_link", :locals => { :iso => "dvd-" + arch, :text => "Installation DVD", :torrent => torrent } )%>
26             </div>
27           </div>
28         </div>
29         
30         <div class="c50l">
31           <div class="subc">
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         <%= render(:partial => "eula_link") %>
41       </div>