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 class="glyphicon glyphicon-info-sign">
40 <div id="home-slice-list"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Slices" /></div>
43 <div class="col-md-3">
46 <a href="/portal/institution"><img src="{{ STATIC_URL }}img/icon_authority_color.png" alt="" /></a>
49 <button id="validaterequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-ok"></span> Validate Requests</button>
52 <div class="col-md-3">
57 <a href="/portal/support"><img src="{{ STATIC_URL }}img/icon_support.png" alt="" /></a>
60 <button id="ticketbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-envelope"></span> Contact</button>
64 <div class="col-md-3">
69 <a href="/portal/account/"><img src="{{ STATIC_URL }}img/icon_user_color.png" alt="" /></a>
72 <button id="logoutbtn" type="button" class="btn btn-default" data-username="{{ username }}"><span class="glyphicon glyphicon-off"></span> Logout</button>
75 {% if person.last_name %}
76 {{person.first_name}} {{person.last_name}}<br />
78 <span class="label">Username:</span> <a href='/portal/account/' title="Click here to see and edit your account details.">{{person.email}}</a>
84 <div class="col-md-4">
89 <a href="#"><img src="{{ STATIC_URL }}img/icon_slices.png" alt="" /></a>
92 <button id="slicerequestbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Request Slice</button>
95 <p><strong>Your slices </strong>
96 <span title="A slice is a set of testbed resources on which you can conduct an experiment.
97 Either ask your colleagues to give you access to an existing slice or request a new slice by clicking 'Request Slice'."
98 class="glyphicon glyphicon-info-sign">
103 <div id="home-slice-list"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading Slices" /></div>
105 {% if pending_slices %}
106 <p><strong>Pending slices</strong>
107 <span title="Slices that you have requested and are pending for validation by the contact person of your organization."
108 class="glyphicon glyphicon-info-sign">
110 {% for slices in pending_slices %}
118 <div class="col-md-4">
123 <a href="/portal/support"><img src="{{ STATIC_URL }}img/icon_support.png" alt="" /></a>
126 <button id="ticketbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-envelope"></span> Contact</button>
130 <div class="col-md-4">
135 <a href="/portal/account/"><img src="{{ STATIC_URL }}img/icon_user_color.png" alt="" /></a>
138 <button id="logoutbtn" type="button" class="btn btn-default" data-username="{{ username }}"><span class="glyphicon glyphicon-off"></span> Logout</button>
141 {% if person.last_name %}
142 {{person.first_name}} {{person.last_name}}<br />
144 <span class="label">Username:</span> <a href='/portal/account/' title="Click here to see and edit your account details.">{{person.email}}</a>
152 <div class="container-fluid home">
154 <div class="col-sm-2"></div>
155 <div class="col-sm-4 slogan">
157 Your Easy Access to Computer Networking Testbeds:
160 A wide variety of world class testbeds available through your one account
163 <div class="col-sm-5 col-sm-offset-1">
165 {% widget '_widget-login-user.html' %}
168 <div class="col-sm-1"></div>
174 <script type="text/javascript">
175 $(document).ready(function() {
176 $('a.home-tab').click(function() {
177 $('ul.nav-tabs li').removeClass('active');
178 $(this).parent().addClass('active');
179 $('div.home-panel').hide();
180 $('div#'+$(this).data('panel')).show();
182 $('button#validaterequestbtn').click(function() {
183 window.location="/portal/institution#requests";
185 $('button#ticketbtn').click(function() {
186 window.location="/portal/contact/";
188 $('button#signupbtn').click(function() {
189 window.location="/portal/register/";
191 $('button#slicerequestbtn').click(function() {
192 window.location="/portal/slice_request/";
195 myslice.loadSlices();