1 {% load portal_filters %}
3 <div class="container">
5 <div class="col-sm-3 col-md-3 logo">
6 <a href="/"><img src="{{ STATIC_URL }}img/onelab-portal.png" alt="OneLab Portal - Future Internet Testbeds" /></a>
9 <div class="col-sm-4 col-md-4 navigation">
12 <a class="dropdown-toggle" data-toggle="dropdown" href="#">
13 EXPERIMENT <span class="caret"></span>
16 <div class="dropdown-menu" style="z-index:99;">
17 <ul id="dropdown-slice-list">
18 <li class="title"><a href="/portal/slice_request/">Request Slice</a></li>
23 <li id="nav-institution" class=""><a href="/institution">MANAGEMENT</a></li>
25 <li><a href="/support/">SUPPORT</a></li>
29 <div class="col-sm-4 col-md-4 navigation">
32 <div class="col-sm-5 col-md-5 secondary">
34 <li><a href="/news">News</a></li>
35 <li><a href="/about">About</a></li>
36 <li><a target="_blank" href="https://www.onelab.eu">Public Website</a></li>
37 <li><a target="_blank" href="http://intranet.onelab.eu">Intranet</a></li>
40 <div class="account">You are logged in as <a href="/account/">{{ username }}</a> | <a id="logout" style="cursor:pointer;" data-username="{{ username }}"><span class="glyphicon glyphicon-off"></span> Logout</a></div>
48 {% widget '_widget-message.html' %}
51 $(document).ready(function() {
52 $('li.slices').mouseenter(function() {
53 $('div#menu-slice-list').fadeIn(100);
55 $('div#menu-slice-list').mouseleave(function(e) {
56 if (!$('li.slices').is(":hover")) {
60 // var slices = localStorage.getItem('slices');
61 // if (slices.length == 0) {
62 // $.post("/rest/user/",{'filters':{'user_hrn':'$user_hrn'}}, function( data ) {
64 // localStorage.setItem('slices', data[0].slice);
67 // $.each(slices, function( key, val ) {
68 // items.push( "<li><a href=\"/slice/"+val.slice_hrn+"\">" + val.slice_hrn + "</a></li>" );
70 // $("div#home-slice-list").html($( "<ul/>", { html: items.join( "" ) }));