3 <select id="release" name="release">
4 <option value="">Select a release</option>
5 {%- for id, relname in id2relname|dictsort(true, 'value') %}
6 <option value="{{ id }}">{{ relname }}</option>
9 <select id="mirror" name="mirror">
10 {%- for id, mirrorname in mirror2name|dictsort %}
11 {%- if id == 'us-nh' %}
12 <option selected value="{{ id }}">{{ mirrorname }}</option>
14 <option value="{{ id }}">{{ mirrorname }}</option>
19 <div class="highlight-python" id="reposetup">
21 After selecting a release the setup code will be shown here.
28 {%- for id, codename in id2codename|dictsort %}
29 "{{ id }}" : "{{ codename }}",
34 {%- for id, url in mirror2url|dictsort %}
35 "{{ id }}" : "{{ url }}",
39 function createrepourl(rel, mir) {
40 if(rel in rel2name && mir in mirrors) {
42 var retrepo = "wget -O- http://neuro.debian.net/lists/" + rel2name[rel] + "."
43 + mir + " | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list\n"
44 + "sudo apt-key adv --recv-keys --keyserver pgp.mit.edu 2649A5A9\n";
49 function updateout(rel, mir) {
50 $('#code').text(createrepourl(rel, mir));
52 $('#release').change(function() {
53 var singleValues = $("#release").val();
54 var mirrorVal = $("#mirror").val();
55 updateout(singleValues, mirrorVal);
57 $('#mirror').change(function() {
58 var singleValues = $("#release").val();
59 var mirrorVal = $("#mirror").val();
60 updateout(singleValues, mirrorVal);