- make the whole thing generic so it can also be used
[opensuse:software-o-o.git] / app / views / main / _net_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+="net"
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>, <strong>Network Installation</strong></span></h3>
20         <div class="subcolumns">
21           <div class="c50l">
22             <div class="subc">
23               <div class="media">
24                 <h3>Boot CD</h3>
25                 <%= render(:partial => "download_link", :locals => { :iso => "net-" + arch, :text => "Mini CD", :torrent => torrent } )%>
26               </div>
27             </div>
28           </div>
29           <div class="c50r">
30             <div class="subc">
31               <div class="media">
32                 <h3>Repositories</h3>
33                 <p>
34                   <a href="<%= @repourl %>/repo/oss/">Installation Repository</a> (needed)<br />
35                   <a href="<%= @repourl %>/repo/non-oss/">Addon Installation Repository</a> (optional)
36                 </p>
37               </div>
38             </div>
39           </div>
40         </div>
41         <%= render(:partial => "eula_link") %>
42       </div>