196a59cfd6f197bc10e780dd56f8002e9986d6f3
[myslice.git] / portal / templates / onelab / onelab__widget-topmenu.html
1 {% insert_str prelude "js/bootstrap.js" %}
2 {% insert_str prelude "css/bootstrap.css" %}
3 {% insert_str prelude "css/topmenu.css" %}
4 {% insert_str prelude "js/logout.js" %}
5 <div id="header">
6         <div class="wrapper">
7                 <div class="logo">
8                         <a href="/"><img src="{{ STATIC_URL }}img/onelab-portal.png" alt="OneLab - Future Internet Testbeds" /></a>
9                 </div>
10                 
11                 <div id="secondary">
12                         <ul>
13                                 <li>News</li>
14                                 <li><a href="/portal/about">About</a></li>
15                                 <li><a target="_blank" href="http://www.onelab.eu">Public Website</a></li>
16                                 <li><a target="_blank" href="http://intranet.onelab.eu">Intranet</a></li>
17                         </ul>
18                 </div>
19         </div>
20         
21         {% if username %}
22         <div id="navigation">
23                 <div class="wrapper">
24                 <ul>
25                         <li>SLICES</li>
26                         <li><a href="/portal/validate">REQUESTS</a></li>
27                         <li><a href="/portal/institution">INSTITUTION</a></li>
28                         <li><a href="/portal/support/">SUPPORT</a></li>
29                         <li>|</li>
30                         <li><a href="/portal/account/">{{ username }}</a></li>
31                         <li><a id="logout" style="cursor:pointer;" data-username="{{ username }}">LOGOUT</a></li>
32                 </ul>
33                 </div>
34         </div>
35         {% else %}
36         <div id="navigation">
37                 <div class="wrapper"></div>
38         </div>
39         {% endif %}
40 </div>
41 <script>
42         $(document).ready(function() {
43                 // var slices = localStorage.getItem('slices');
44                 // if (slices.length == 0) {
45                         // $.post("/rest/user/",{'filters':{'user_hrn':'$user_hrn'}}, function( data ) {
46                         // var items = [];
47                                 // localStorage.setItem('slices', data[0].slice);
48                         // });
49                 // }
50                 // $.each(slices, function( key, val ) {
51                         // items.push( "<li><a href=\"/slice/"+val.slice_hrn+"\">" + val.slice_hrn + "</a></li>" );
52                 // });
53                 // $("div#home-slice-list").html($( "<ul/>", { html: items.join( "" ) }));
54         });
55 </script>