1 {% extends "layout_base.html" %}
2 {% load portal_filters %}
6 {% widget '_widget-news.html' %}
9 {% widget "_widget-no_credentials.html" %}
10 <div class="container dashboard">
11 {%if 'no_creds' in user_cred %}
12 <p class="command"><a href="#" style="color:red" data-toggle="modal" data-target="#myModal">NO CREDENTIALS</a> are delegated to the portal!</p>
14 {%if 'creds_expired' in user_cred %}
15 <p class="command"><a href="#" style="color:red" data-toggle="modal" data-target="#myModal">EXPIRED CREDENTIALS</a> Please delegate again your credentials to the portal!</p>
20 <div class="col-md-3">
25 <a href="#"><img src="{{ STATIC_URL }}img/icon_slices.png" alt="" /></a>
28 <button id="slicerequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Create Slice</button>
31 <p><strong>Your slices </strong>
32 <span title="A slice is a set of testbed resources on which you can conduct an experiment.
33 Either ask your colleagues to give you access to an existing slice or request a new slice by clicking 'Request Slice'.
34 However, on the OneLab portal, you will only see slices that you have created through OneLab. If you have created slices elsewhere,
35 such as on the PlanetLab Europe portal, those slices will not appear here."
36 class="glyphicon glyphicon-info-sign">
42 <div id="home-slice-list"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Slices" /></div>
45 <div class="col-md-3">
48 <a href="/portal/institution"><img src="{{ STATIC_URL }}img/icon_authority_color.png" alt="" /></a>
51 <button id="validaterequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-ok"></span> Validate Requests</button>
54 <div class="col-md-3">
59 <a href="/portal/support"><img src="{{ STATIC_URL }}img/icon_support.png" alt="" /></a>
62 <button id="ticketbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-envelope"></span> Contact</button>
66 <div class="col-md-3">
71 <a href="/portal/account/"><img src="{{ STATIC_URL }}img/icon_user_color.png" alt="" /></a>
74 <button id="logoutbtn" type="button" class="btn btn-default" data-username="{{ username }}"><span class="glyphicon glyphicon-off"></span> Logout</button>
77 {% if person.last_name %}
78 {{person.first_name}} {{person.last_name}}<br />
80 <span class="label">Username:</span> <a href='/portal/account/' title="Click here to see and edit your account details.">{{person.email}}</a>
86 <div class="col-md-4">
91 <a href="#"><img src="{{ STATIC_URL }}img/icon_slices.png" alt="" /></a>
94 <button id="slicerequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Request Slice</button>
97 <p><strong>Your slices </strong>
98 <span title="A slice is a set of testbed resources on which you can conduct an experiment.
99 Either ask your colleagues to give you access to an existing slice or request a new slice by clicking 'Request Slice'.
100 However, on the OneLab portal, you will only see slices that you have created through OneLab. If you have created slices elsewhere,
101 such as on the PlanetLab Europe portal, those slices will not appear here."
102 class="glyphicon glyphicon-info-sign">
107 <div id="home-slice-list"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Slices" /></div>
109 {% if pending_slices %}
110 <p><strong>Pending slices</strong>
111 <span title="Slices that you have requested and are pending for validation by the contact person of your organization."
112 class="glyphicon glyphicon-info-sign">
114 {% for slices in pending_slices %}
122 <div class="col-md-4">
127 <a href="/portal/support"><img src="{{ STATIC_URL }}img/icon_support.png" alt="" /></a>
130 <button id="ticketbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-envelope"></span> Contact</button>
134 <div class="col-md-4">
139 <a href="/portal/account/"><img src="{{ STATIC_URL }}img/icon_user_color.png" alt="" /></a>
142 <button id="logoutbtn" type="button" class="btn btn-default" data-username="{{ username }}"><span class="glyphicon glyphicon-off"></span> Logout</button>
145 {% if person.last_name %}
146 {{person.first_name}} {{person.last_name}}<br />
148 <span class="label">Username:</span> <a href='/portal/account/' title="Click here to see and edit your account details.">{{person.email}}</a>
156 <div class="container-fluid home">
158 <div class="col-sm-2"></div>
159 <div class="col-sm-4 slogan">
161 Your Easy Access to Computer Networking Testbeds:
164 A wide variety of world class testbeds available through your one account
167 <div class="col-sm-5 col-sm-offset-1">
169 {% widget '_widget-login-user.html' %}
172 <div class="col-sm-1"></div>
178 <script type="text/javascript">
179 $(document).ready(function() {
180 $('a.home-tab').click(function() {
181 $('ul.nav-tabs li').removeClass('active');
182 $(this).parent().addClass('active');
183 $('div.home-panel').hide();
184 $('div#'+$(this).data('panel')).show();
186 $('button#validaterequestbtn').click(function() {
187 window.location="/portal/institution#requests";
189 $('button#ticketbtn').click(function() {
190 window.location="/portal/contact/";
192 $('button#signupbtn').click(function() {
193 window.location="/portal/register/";
195 $('button#slicerequestbtn').click(function() {
196 window.location="/portal/slice_request/";
199 myslice.loadSlices();