]> 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 f56d610a41ca4a4e6b893a1951351a76ff738a19..49cb209a532d5e0d0937235af83c08e7c274f75d 100644 (file)
@@ -1,26 +1,20 @@
 .. raw:: html
 
  <select id="release" name="release">
-   <option value="">Select a release</option>
+   <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 %}
-{%- if id == 'us-nh' %}
-   <option selected value="{{ id }}">{{ mirrorname }}</option>
-{%- else %}
    <option value="{{ id }}">{{ mirrorname }}</option>
-{%- endif %}
 {%- endfor %}
  </select>
 
- <div class="highlight-python" id="reposetup">
- <pre id="code">
- After selecting a release the setup code will be shown here.
- </pre>
- </div>
  <script>
  <!--
  
 {%- endfor %}
   };
 
-  function createrepourl(rel, mir) {
-    if(rel in rel2name && mir in mirrors) {
-
-        var retrepo = "wget -O- http://neuro.debian.net/lists/" + rel2name[rel] + "."
-         + mir + " | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list\n"
-         + "sudo apt-key adv --recv-keys --keyserver pgp.mit.edu 2649A5A9\n";
-        return retrepo;
-    }
-
-  };
-  function updateout(rel, mir) {
-        $('#code').text(createrepourl(rel, mir));
-  };
-   $('#release').change(function() {
-     var singleValues = $("#release").val();
-     var mirrorVal = $("#mirror").val();
-     updateout(singleValues, mirrorVal);
-   });
-   $('#mirror').change(function() {
-     var singleValues = $("#release").val();
-     var mirrorVal = $("#mirror").val();
-     updateout(singleValues, mirrorVal);
-   });
-
  //-->
  </script>
-