Commit fce74f58 authored by Leo Iannacone's avatar Leo Iannacone

s/All services/Architectues + removed _blank

parent 051b26bf
...@@ -34,17 +34,17 @@ ...@@ -34,17 +34,17 @@
<li><a href="<%= web.paths.preferences %>">Preferences</a></li> <li><a href="<%= web.paths.preferences %>">Preferences</a></li>
<% } %> <% } %>
<li class="dropdown"> <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">All services <span class="caret"></span></a> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Architectures <span class="caret"></span></a>
<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu3"> <ul class="dropdown-menu dropdown-menu-right" role="menu">
<script> <script>
var all_services = ['amd64', 'i386', 'armel', 'armhf', 'powerpc', 's390x']; var all_services = ['amd64', 'i386', 'armel', 'armhf', 'powerpc', 's390x'];
for (var i = 0; i < all_services.length; i++) { for (var i = 0; i < all_services.length; i++) {
var arch = all_services[i]; var arch = all_services[i];
var host = "debomatic-" + arch + '.debian.net'; var host = "debomatic-" + arch + '.debian.net';
if (host == location.hostname) { if (host == location.hostname) {
document.write('<li class="disabled"><a>'+ arch +'</a></li>') document.write('<li class="disabled"><a>'+ arch +'</a></li>');
} else { } else {
document.write('<li><a target="_blank" href="http://' + host + '">'+ arch +'</a></li>'); document.write('<li><a href="http://' + host + '">'+ arch +'</a></li>');
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment