1 {% if section == "resources" %}
2 <ul class="nav nav-tabs nav-section">
3 <li><a href="/slice/{{ slice }}#info"><img src="{{ STATIC_URL }}icons/slices-xs.png" alt="About MySlice" /> {{ slice }}</a></li>
4 <li><a href="/slice/{{ slice }}#testbeds">Testbeds</a></li>
5 <li class="active"><a class="link" href="/resources/{{ slice }}">Resources</a></li>
6 <li><a href="/slice/{{ slice }}#users">Users</a></li>
7 <!--<li><a href="/slice/{{ slice }}#statistics">Statistics</a></li> -->
8 <li><a href="/slice/{{ slice }}#measurements">Measurements</a></li>
9 <li><a href="/slice/{{ slice }}#experiment" data-toggle="tab">Experiment</a></li>
10 <li><a href="/slice/{{ slice }}#sla">SLA</a></li>
13 <ul class="nav nav-tabs nav-section">
14 <li class="active"><a href="#info"><img src="{{ STATIC_URL }}icons/slices-xs.png" alt="About MySlice" /> {{ slice }}</a></li>
15 <li class="testbeds"><a href="#testbeds">Testbeds</a></li>
16 <li><a class="link" href="/resources/{{ slice }}">Resources</a></li>
17 <li class="users"><a href="#users">Users</a></li>
18 <!-- <li class="statistics"><a href="#statistics">Statistics</a></li> -->
19 <li class="measurements"><a href="#measurements">Measurements</a></li>
20 <li class="experiment"><a href="#experiment" data-toggle="tab">Experiment</a></li>
21 <li class="sla"><a href="#sla" data-toggle="tab">SLA</a></li>
24 $(document).ready(function() {
25 $('.nav-tabs a').click(function (e) {
26 if ($(this).hasClass('link')) return;
29 var id = $(this).attr('href').substr(1);
30 $("#" + id).load('/' + id + '/{{ slice }}/');
32 $('div#info').load('/info/{{ slice }}/');