]> git.donarmstrong.com Git - neurodebian.git/blobdiff - neurodebian/templates/sources_lists.rst
First wave of the website redesign.
[neurodebian.git] / neurodebian / templates / sources_lists.rst
index 58dd044565799ccb7b2036c2172f7da57c114583..49cb209a532d5e0d0937235af83c08e7c274f75d 100644 (file)
@@ -1,4 +1,34 @@
-{% for dist, mirrors in repos|dictsort %}
-* {{ dist }}: {% for mirror, list in mirrors|sort %}[`{{ mirror }} <_static/{{ list }}>`__] {% endfor %}
-{% endfor %}
+.. raw:: html
 
+ <select id="release" name="release">
+   <option selected value="">Select your operating system</option>
+   <option value="win">MS Windows</option>
+   <option value="mac">Mac OS X</option>
+{%- for id, relname in id2relname|dictsort(true, 'value') %}
+   <option value="{{ id }}">{{ relname }}</option>
+{%- endfor %}
+ </select>
+ <select id="mirror" name="mirror">
+   <option selected value="">Select a download server</option>
+{%- for id, mirrorname in mirror2name|dictsort %}
+   <option value="{{ id }}">{{ mirrorname }}</option>
+{%- endfor %}
+ </select>
+
+ <script>
+ <!--
+  var rel2name =  {
+{%- for id, codename in id2codename|dictsort %}
+   "{{ id }}" : "{{ codename }}",
+{%- endfor %}
+  };
+
+  var mirrors =  {
+{%- for id, url in mirror2url|dictsort %}
+   "{{ id }}" : "{{ url }}",
+{%- endfor %}
+  };
+
+ //-->
+ </script>