1 {% extends "layout_base.html" %}
2 {% load portal_filters %}
6 {% widget '_widget-news.html' %}
9 <!-- Modal- No credentials -->
10 <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
11 <div class="modal-dialog">
12 <div class="modal-content">
13 <div class="modal-header">
14 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
15 <h4 class="modal-title" id="myModalLabel">No credentials are delegated to the portal</h4>
17 <div class="modal-body" style="text-align:justify;">
18 <p>You are getting this message for any of the following reasons:</p>
20 <li>If your account is still pending for validation</li>
21 <li>If you press the "Clear Credentials" button</li>
22 <li>If you "Generate a new key pair"</li>
23 <li>If a new slice is added to your account</li>
25 <p>Unless your account has not yet been validated, it is sufficient to refresh the page or go back to the home page.
26 The portal will then regenerate your credentials. In some cases it may take more time than usual. If nothing works,
27 then please logout and login back into to the portal.
29 <h3>Manual delegation of credentials</h3>
31 You have selected upon sign-up to upload your public key. As you have uploaded your own public key,
32 the portal can no longer generate your credentials automatically. In order to have your credentials
33 delegated to the portal, please follow these instructions:
36 <li>Your account must first be validated by the manager of your organization.</li>
37 <li>In order for the portal to contact testbeds on your behalf, so as to list and reserve resources, you will need to
38 <a href="/portal/manual_delegation" target="_blank">delegate your credentials to the portal.</a></li>
41 <h3>Contact support</h3>
42 <p>If you don't have the above mentioned cases and still have this message, please <a href="/contact/" target="_blank">contact us</a>.</p>
44 <div class="modal-footer">
45 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
50 <div class="container dashboard">
51 {%if 'no_creds' in user_cred %}
52 <p class="command"><a href="#" style="color:red" data-toggle="modal" data-target="#myModal">NO CREDENTIALS</a> are delegated to the portal!</p>
54 {%if 'creds_expired' in user_cred %}
55 <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>
60 <div class="col-md-3">
65 <a href="#"><img src="{{ STATIC_URL }}img/icon_slices.png" alt="" /></a>
68 <button id="slicerequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Create Slice</button>
71 <p><strong>Your slices </strong>
72 <span title="A slice is a set of testbed resources on which you can conduct an experiment.
73 Either ask your colleagues to give you access to an existing slice or request a new slice by clicking 'Request Slice'.
74 However, on the OneLab portal, you will only see slices that you have created through OneLab. If you have created slices elsewhere,
75 such as on the PlanetLab Europe portal, those slices will not appear here."
76 class="glyphicon glyphicon-info-sign">
82 <div id="home-slice-list"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Slices" /></div>
85 <div class="col-md-3">
88 <a href="/portal/institution"><img src="{{ STATIC_URL }}img/icon_authority_color.png" alt="" /></a>
91 <button id="validaterequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-ok"></span> Validate Requests</button>
94 <div class="col-md-3">
99 <a href="/portal/support"><img src="{{ STATIC_URL }}img/icon_support.png" alt="" /></a>
102 <button id="ticketbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-envelope"></span> Contact</button>
106 <div class="col-md-3">
111 <a href="/portal/account/"><img src="{{ STATIC_URL }}img/icon_user_color.png" alt="" /></a>
114 <button id="logoutbtn" type="button" class="btn btn-default" data-username="{{ username }}"><span class="glyphicon glyphicon-off"></span> Logout</button>
117 {% if person.last_name %}
118 {{person.first_name}} {{person.last_name}}<br />
120 <span class="label">Username:</span> <a href='/portal/account/' title="Click here to see and edit your account details.">{{person.email}}</a>
126 <div class="col-md-4">
131 <a href="#"><img src="{{ STATIC_URL }}img/icon_slices.png" alt="" /></a>
134 <button id="slicerequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Request Slice</button>
137 <p><strong>Your slices </strong>
138 <span title="A slice is a set of testbed resources on which you can conduct an experiment.
139 Either ask your colleagues to give you access to an existing slice or request a new slice by clicking 'Request Slice'.
140 However, on the OneLab portal, you will only see slices that you have created through OneLab. If you have created slices elsewhere,
141 such as on the PlanetLab Europe portal, those slices will not appear here."
142 class="glyphicon glyphicon-info-sign">
147 <div id="home-slice-list"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Slices" /></div>
149 {% if pending_slices %}
150 <p><strong>Pending slices</strong>
151 <span title="Slices that you have requested and are pending for validation by the contact person of your organization."
152 class="glyphicon glyphicon-info-sign">
154 {% for slices in pending_slices %}
162 <div class="col-md-4">
167 <a href="/portal/support"><img src="{{ STATIC_URL }}img/icon_support.png" alt="" /></a>
170 <button id="ticketbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-envelope"></span> Contact</button>
174 <div class="col-md-4">
179 <a href="/portal/account/"><img src="{{ STATIC_URL }}img/icon_user_color.png" alt="" /></a>
182 <button id="logoutbtn" type="button" class="btn btn-default" data-username="{{ username }}"><span class="glyphicon glyphicon-off"></span> Logout</button>
185 {% if person.last_name %}
186 {{person.first_name}} {{person.last_name}}<br />
188 <span class="label">Username:</span> <a href='/portal/account/' title="Click here to see and edit your account details.">{{person.email}}</a>
196 <div class="container-fluid home">
198 <div class="col-sm-2"></div>
199 <div class="col-sm-4 slogan">
201 Your Easy Access to Computer Networking Testbeds:
204 A wide variety of world class testbeds available through your one account
207 <div class="col-sm-5 col-sm-offset-1">
209 {% widget '_widget-login-user.html' %}
212 <div class="col-sm-1"></div>
218 <script type="text/javascript">
219 $(document).ready(function() {
220 $('a.home-tab').click(function() {
221 $('ul.nav-tabs li').removeClass('active');
222 $(this).parent().addClass('active');
223 $('div.home-panel').hide();
224 $('div#'+$(this).data('panel')).show();
226 $('button#validaterequestbtn').click(function() {
227 window.location="/portal/institution#requests";
229 $('button#ticketbtn').click(function() {
230 window.location="/portal/contact/";
232 $('button#signupbtn').click(function() {
233 window.location="/portal/register/";
235 $('button#slicerequestbtn').click(function() {
236 window.location="/portal/slice_request/";
240 Launch queries to get the resources and leases in Manifold Cache
243 $.post("/rest/resource/", function( data ) {
245 $.post("/rest/lease/", function( data ) {
249 List of slices has been moved in
250 portal/templates/base.html
251 This is now in localStorage
253 // myslice.user is in LocalStorage
254 if(myslice.user.slices.length>0){
255 $.each( myslice.user.slices, function(i, val) {
257 Launch a Query for each slice to get resources and leases in Manifold Cache
259 $.post("/rest/slice/", { 'filters': { 'slice_hrn' : val } }, function(data) {
265 {# widget "_widget-monitor.html" #}
266 {# widget "_widget-stats-top-slices.html" #}