Split arch logic into separate function (thanks, cstamas!)
[grml.org.git] / download / prerelease / index.html.tt2
1 <?php
2 // while there is no prerelease, redirect to stable page
3 header("Location: /download/");
4 exit;
5 ?>
6 <!DOCTYPE html>
7 <html>
8 <head>
9 <title>grml.org - Download</title>
10 <meta name="Title" content="grml.org - Download" />
11 <meta name="Author" content="the grml team [www.grml.org/team/]" />
12 <meta name="Keywords" content="grml.org, grml" />
13 <meta name="Description" content="Download of grml.org" />
14 <meta name="Abstract" content="grml, just another linux-distribution" />
15 <meta name="fdse-index-as" content="http://www.grml.org/download/" />
16 <meta name="Robots" content="index,follow" />
17 <meta name="Language" content="english" />
18 <meta name="identifier-url" content="http://www.grml.org/" />
19 <meta name="MSSmartTagsPreventParsing" content="true" />
20 <meta http-equiv="imagetoolbar" content="no" />
21 <link rel="home" href="/" title="grml.org" />
22 <link rel="help" href="/features/" title="About" />
23 <link rel="author" href="/team/" title="Team" />
24 <link rel="icon" href="/favicon.png" type="image/png" />
25 <link rel="stylesheet" href="/style.css" type="text/css" />
26 <style type="text/css">
27 #contentbox {
28     padding-left: 20px;
29     padding-right: 20px;
30 }
31 .download_panel {
32     float: left;
33     width: 288px;
34     margin-bottom: 2em;
35     margin-top: 1em;
36     font-size: 11px;
37 }
38 .download_panel>div {
39     margin-right: 20px;
40 }
41 #download_panel4 {
42     width: auto;
43 }
44 .largebutton {
45     width: 100%;
46     background: #FFDA62;
47     height: 90px;
48     border: 1px solid gray;
49     -moz-border-radius:3px;
50     -webkit-border-radius:3px;
51     -o-border-radius:3px;
52     border-radius:3px;
53     margin-bottom: 0.5em;
54     font-size: 15pt;
55     font-weight: bold;
56     display: block;
57     text-align: center;
58     color: black;
59     text-decoration: none;
60     padding: auto;
61     }
62 .largebutton:hover {
63     background: #FFA862;
64 }
65 .download_relinfo {
66     font-size: 10pt;
67     margin-top: 0.8em;
68     }
69 .download_group {
70     border-bottom: 1px dotted gray;
71     overflow: auto;
72 }
73 .hide {
74     display: none;
75 }
76 </style>
77
78 </head>
79
80 <body>
81 [% INCLUDE static.inc %]
82
83 <div class="content">
84
85     <h1>Download Grml 2012.05-rc1</h1>
86
87     <p><strong>NOTE: This is a PRE-RELEASE, not a stable release yet.<br />
88     You have been warned.</strong><br />
89
90     <a href="../">Looking for the stable release version instead?</a></p>
91
92     <p>Download the Grml flavour you need, then write it to a CD-R or an empty USB stick.</p>
93
94     <div class="download_group" id="download_group1">
95     <form method="get" action="/download/bounce/">
96     <input type="hidden" name="version" value="2012.05-rc1"/>
97     <div class="download_panel" id="download_panel1"><div>
98
99     <h2>Options</h2>
100
101     <select name="flavour" id="download_flavour" style="width:100%;">
102     <option value="full" selected="selected">grml-full (~350MB)</option>
103     <option value="small">grml-small (~150MB)</option>
104     </select>
105     <br /><br />
106     <select name="arch" id="download_arch" style="width:100%;">
107     <option value="amd64" selected="selected">64-bit PC (amd64)</option>
108     <option value="i386">32-bit PC (i586+)</option>
109     <option value="96">One for both (700MB)</option>
110     </select>
111     <br />
112     <br />
113     <br />
114     <br />
115     <br />
116     <a href="/changelogs/README-grml-2012.05-rc1/">Release Notes</a>
117     </div></div>
118
119     <div class="download_panel" id="download_panel2"><div>
120     <!-- fallback cgi buttons -->
121     <div id="formbuttons">
122     <button name="filetype" value="iso" id="download_button_mirror" class="largebutton" style="width:100%;" type="submit">Download Now </button><br />
123     <button name="filetype" value="bt" id="download_button_bt" type="submit">Download using BitTorrent</button><br />
124     <button name="filetype" value="signature" id="download_button_signature" type="submit">Get Checksum/Signature</button><br />
125     </div>
126     <!-- JS links -->
127     <div id="linkbuttons" style="display:none;">
128     <a id="download_link_mirror" class="largebutton">Download Now</a><br />
129     <a id="download_link_bt">BitTorrent Download</a><br />
130     <a id="download_link_signature">Get Checksum/Signature</a><br />
131     </div>
132     </div></div>
133
134     </form>
135     <script type="text/javascript">
136     function update_arch() {
137         var flavour = document.getElementById('download_flavour').value;
138         if (flavour == 'small') document.getElementById('download_arch').innerHTML = '<option value="amd64">64-bit PC (amd64)</option><option value="i386">32-bit PC (i586+)</option><option value="96">One for both (300MB)</option>';
139         if (flavour == 'full') document.getElementById('download_arch').innerHTML = '<option value="amd64">64-bit PC (amd64)</option><option value="i386">32-bit PC (i586+)</option><option value="96">One for both (700MB)</option>';
140     }
141
142     function update_links() {
143         var current_version = "2012.05-rc1";
144         var product = 'grml';
145         var arch = document.getElementById('download_arch').value;
146         var flavour = document.getElementById('download_flavour').value;
147         if (arch == 'amd64') product = 'grml64';
148         if (arch == 'i386') product = 'grml32';
149         if (arch == '96') product = 'grml96';
150         var iso = product + '-' + flavour + '_' + current_version + '.iso';
151         var mirror_url = "http://download.grml.org/devel/";
152         document.getElementById('download_link_mirror').href = mirror_url + iso;
153         document.getElementById('download_link_mirror').innerHTML = '<br />Download Now<div class="download_relinfo">' + product + '-' + flavour + ' ' + current_version + '</div>';
154         document.getElementById('download_link_bt').href = mirror_url + iso + '.torrent';
155         document.getElementById('download_link_signature').href = mirror_url + iso + '.sha1.asc';
156     }
157
158     // hook update function
159     document.getElementById('download_flavour').onchange = update_arch;
160     document.getElementById('download_arch').onchange = update_links;
161     // force initial link href set
162     update_links();
163     // only show our link "buttons"
164     document.getElementById('formbuttons').style.display = 'none';
165     document.getElementById('linkbuttons').style.display = '';
166     </script>
167     </div>
168
169     <div class="download_group" id="download_group2">
170
171     <div class="download_panel" id="download_panel3"><div>
172     <b>Alternate downloads</b><br /><br />
173     <a href="http://daily.grml.org/">Daily images</a><br />
174     <a href="http://download.grml.org/">Older releases</a><br />
175     <a href="http://download.grml.org/devel/">chroots for remastering</a> (prerelease)<br />
176     <a href="http://download.grml.org/devel/grml_sources-2012.05-rc1.tgz">Source code</a> (one tgz for both architectures)<br />
177     <br />
178     <a href="http://debian.netcologne.de/grml/gnupg-michael-prokop.txt">Signing Key</a><br />
179     <br />
180     Please verify all downloads using GnuPG!
181     </div></div>
182
183     <div class="download_panel" id="download_panel4"><div>
184     <b>Boot from USB stick</b><br />
185     <br />
186     Just <tt>dd(1)</tt> the downloaded ISO to an <abbr title="Any existing data will be overwritten by the dd command!">empty</abbr> USB stick!<br /><br />
187     <code>dd if=grml_2012.05-rc1.iso of=/dev/USB_STICK</code>
188     <br /><br />
189
190     <b>Troubleshooting</b><br /><br />
191     <a href="http://git.grml.org/?p=grml-live.git;a=blob_plain;f=templates/GRML/grml-cheatcodes.txt;hb=HEAD">Boot option guide</a>
192     <br /><br />
193
194     </div></div>
195
196     </div>
197
198     <div style="clear: both;"></div>
199
200 </div>
201
202 [% INCLUDE static_bottom.inc %]