Commit 8225c468 authored by Leo Iannacone's avatar Leo Iannacone

dropdown menu in the right place

parent fdb06f1c
......@@ -17,27 +17,27 @@
<div class="navbar-header home-link">
<span class="pull-left icon"></span>
<span style="padding-right: 5px;" onclick="window.location.href='/'" class="navbar-brand">Deb-o-Matic</span>
<ul class="nav navbar-nav">
<li class="dropdown">
<a style="color: #eee; font-size: 15px; padding: 15px 10px;" href="#" class="dropdown-toggle" data-toggle="dropdown"><%= web.debomatic.architecture %> <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<script>
var all_services = ['amd64', 'i386', 'armel', 'armhf', 'powerpc', 's390x'];
for (var i = 0; i < all_services.length; i++) {
var arch = all_services[i];
var host = "debomatic-" + arch + '.debian.net';
if (host == location.hostname) {
document.write('<li class="disabled"><a>'+ arch +'</a></li>');
} else {
document.write('<li><a href="http://' + host + '">'+ arch +'</a></li>');
}
}
</script>
</ul>
</li>
</ul>
</div>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a style="color: #eee; font-size: 15px; padding: 15px 10px;" href="#" class="dropdown-toggle" data-toggle="dropdown"><%= web.debomatic.architecture %> <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<script>
var all_services = ['amd64', 'i386', 'armel', 'armhf', 'powerpc', 's390x'];
for (var i = 0; i < all_services.length; i++) {
var arch = all_services[i];
var host = "debomatic-" + arch + '.debian.net';
if (host == location.hostname) {
document.write('<li class="disabled"><a>'+ arch +'</a></li>');
} else {
document.write('<li><a href="http://' + host + '">'+ arch +'</a></li>');
}
}
</script>
</ul>
</li>
</ul>
<div id="distributions">
<ul class="nav navbar-nav"></ul>
</div>
......
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