5 <a href="/"><img src="{{ STATIC_URL }}img/onelab-portal.png" alt="OneLab - Future Internet Testbeds" /></a>
10 <li><a href="/news">News</a></li>
11 <li><a href="/portal/about">About</a></li>
12 <li><a target="_blank" href="http://www.onelab.eu">Public Website</a></li>
13 <li><a target="_blank" href="http://intranet.onelab.eu">Intranet</a></li>
22 <li id="nav-account"><a href="/portal/account/">{{ username }}</a></li>
24 <li id="nav-institution" class=""><a href="/portal/institution">INSTITUTION</a></li>
26 <a class="dropdown-toggle" data-toggle="dropdown" href="#">
27 SLICES <span class="caret"></span>
30 <div class="dropdown-menu" style="z-index:99;">
31 <ul id="dropdown-slice-list">
32 <li><a href="/portal/slice_request/">Request Slice</a></li>
36 <li id="nav-request"><a href="/portal/validate">REQUESTS</a></li>
37 <li id="nav-support"><a href="/portal/support/">SUPPORT</a></li>
39 <li id="nav-logout" style="margin-top: 10px;"><a id="logout" style="cursor:pointer;" data-username="{{ username }}"><span class="glyphicon glyphicon-off"></span> LOGOUT</a></li>
45 <div class="wrapper"></div>
50 $(document).ready(function() {
51 $('li.slices').mouseenter(function() {
52 $('div#menu-slice-list').fadeIn(100);
54 $('div#menu-slice-list').mouseleave(function(e) {
55 if (!$('li.slices').is(":hover")) {
59 // var slices = localStorage.getItem('slices');
60 // if (slices.length == 0) {
61 // $.post("/rest/user/",{'filters':{'user_hrn':'$user_hrn'}}, function( data ) {
63 // localStorage.setItem('slices', data[0].slice);
66 // $.each(slices, function( key, val ) {
67 // items.push( "<li><a href=\"/slice/"+val.slice_hrn+"\">" + val.slice_hrn + "</a></li>" );
69 // $("div#home-slice-list").html($( "<ul/>", { html: items.join( "" ) }));