Merge branch 'onelab' of ssh://git.onelab.eu/git/myslice into onelab
[myslice.git] / portal / templates / fed4fire / fed4fire_home-view.html
1 {% extends "layout_base.html" %}
2 {% load portal_filters %}
3
4 {% block content %}
5 <!-- <div class="row">
6 {% widget '_widget-news.html' %}
7 </div> -->
8 {% if username %}
9
10 {% block head %} 
11 <script type="text/javascript" src="https://java.com/js/dtjava.js"></script>
12 {% endblock head %}
13
14 {% widget "_widget-no_credentials.html" %}
15 <div class="container dashboard">
16         <div class="row">
17             <div class="col-md-12">
18         {%if 'no_creds'  in user_cred %}
19         <p class="command"><a href="#" style="color:red" data-toggle="modal" data-target="#myModal">NO CREDENTIALS</a> are delegated to the portal!</p>
20         {%endif%}
21         {%if 'creds_expired'  in user_cred %}
22         <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>
23     {%endif%}
24         </div>
25     </div>
26     <div class="row">
27         <div class="col-sm-4">
28             <h3>
29                 <a href="/portal/slice_request"><img src="{{ STATIC_URL }}img/icon_slices_small.png" alt="" /></a>EXPERIMENT
30             </h3>
31             
32             <div class="projects-tree">
33                 Your projects and slices
34                 <span title="A <b>slice</b> is a set of testbed resources on which you can conduct an experiment. 
35                 Either ask your colleagues to give you access to an existing slice or request a new slice by clicking 'Request Slice'. 
36                 However, on the Fed4FIRE portal, you will only see slices that you have created through Fed4FIRE. If you have created slices elsewhere, 
37                 those slices will not appear here. <br /><br /> A <b>project</b> is a sub-authority under the responsability of your institution gathering users, 
38                 who will be able to create slices for their experiments." class="glyphicon glyphicon-info-sign">&nbsp;</span> 
39              
40                 <div id="home-project-tree"><img src="{{ STATIC_URL }}img/loading.gif" alt="Loading projects" /></div>
41             </div>
42             <div>
43                 <span class="glyphicon glyphicon-plus"></span> <a href="/portal/slice_request/">Create slice</a>
44                 <br />
45                 <span class="glyphicon glyphicon-cog"></span> <a href="/portal/project_request/">Create/Join project</a>
46             </div>
47             
48             <div>
49                 <h3 title="Some tools do their own slice creation and management.">Experiment now</h3>
50
51                 <button id="start" class="btn btn-primary" style="width:150px;" type="button" onclick="launchjFed()"><span class="glyphicon glyphicon-cloud"></span>  Start jFed</button>
52                 
53                 <div id='java7Dialog' title="Old Java version detected" >
54                 <p>The latest version of jFed is only compatible with Java 8 or higher. We detected that you are using an older version.</p>
55                 <p>Please upgrade to Java 8 to get access to the newest version of jFed. Otherwise, you can use jFed 5.3.2, which is Java 7-compatible.</p>
56                 </div>
57                 
58                 <div id='noJavaDialog' title="No Java detected" >
59                 <p>jFed requires Java to run. We however couldn't detect a Java installation in your browser.</p>
60                 <p>Please install the latest version of Java to continue.</p>
61                 </div>
62
63             </div>
64         </div>
65         <div class="col-sm-4">
66             <div class="row">
67                 <div class="col-sm-12">
68                     <h3>
69                         <a href="/portal/account/"><img src="{{ STATIC_URL }}img/icon_user_small.png" alt="" /></a>ACCOUNT
70                     </h3>
71                     {% if person.last_name %}
72                     <p>
73                         {{person.first_name}} {{person.last_name}}
74                     </p>
75                     {% endif %}
76                     <p>
77                         <span class="glyphicon glyphicon-user"></span> <a href='/portal/account/' title="Click here to see and edit your account details.">{{person.email}}</a>
78                     </p>
79                 </div>
80             </div>
81             <div class="row">
82                 <div class="col-sm-12">
83                     <h3>
84                         <a href="/portal/institution"><img src="{{ STATIC_URL }}img/icon_authority_color_small.png" alt="" /></a>MANAGEMENT
85                     </h3>
86                    
87                     <div>
88                         <span class="glyphicon glyphicon-ok"></span> <a href="/portal/institution#requests">Validate Requests</a>
89                     </div>
90                 </div>
91             </div>
92         </div>
93         <div class="col-sm-4">
94             <div class="row">
95                 <div class="col-sm-12">
96                     <h3>
97                         <a href="/portal/support"><img src="{{ STATIC_URL }}img/icon_support_small.png" alt="" /></a>SUPPORT 
98                     </h3>
99                     <p>
100                         <span class="glyphicon glyphicon-envelope"></span> <a href="/portal/contact/">Contact</a>
101                     </p>
102                     <p>
103                         <span class="glyphicon glyphicon-stats"></span> <a target="_blank" href="https://flsmonitor.fed4fire.eu">Testbeds' status</a>
104                         </br />
105                         <span class="glyphicon glyphicon-stats"></span> <a href="/portal/reputation">Testbeds' reputation</a>
106                         
107                     </p>
108                     <p>
109                         <span class="glyphicon glyphicon-book"></span> <a target="_blank" href="http://doc.fed4fire.eu/">Documentation</a>
110                     </p>
111                 </div>
112             </div>            
113         </div>
114     </div>
115 </div>
116 {% else %}
117 <div class="container home">
118         <div class="">
119                 <div class="col-sm-4 col-sm-offset-1 slogan">
120                         <h1>
121                                 Fed4FIRE Portal
122                         </h1>
123                         <h3>
124                                 Your easy access to Future Internet Research and Experimentation testbeds belonging to the 
125                                 <a target="_blank" href="http://www.fed4fire.eu/">Fed4FIRE</a> federation.
126                         </h3>
127                         <br />
128                         <h4>
129                                  <a href='http://doc.fed4fire.eu'>Want to learn more?</a>
130                         </h4>
131                 </div>
132                 <div class="col-sm-4 col-sm-offset-1" style="width:400px; top:16px; float:left;">
133                         <div class="row">
134                                 {% widget '_widget-login-user.html' %}
135                         </div>
136                 </div>
137         </div>
138 </div>
139 {% endif %}
140
141
142 <script type="text/javascript">
143    var config = {
144        java8_jnlp: 'http://jfed.iminds.be/jfed-f4f-java8.jnlp',
145        java7_jnlp: 'http://jfed.iminds.be/jfed-f4f-java7.jnlp'
146    };
147
148    var certkey = "{{jfed_identity}}";
149
150         $(document).ready(function() {
151             {%if 'no_creds' in user_cred or 'creds_expired' in user_cred %}
152         localStorage.clear();
153         $.post("/cache/clear/", function( data ) {
154         });
155         {% endif %}
156                 $('a.home-tab').click(function() {
157                         $('ul.nav-tabs li').removeClass('active');
158                         $(this).parent().addClass('active');
159                         $('div.home-panel').hide();
160                         $('div#'+$(this).data('panel')).show();
161                 });
162                 
163 });
164 </script>
165 <script src='https://authority.ilabt.iminds.be/js/jquery/jquery.min.js'></script>
166 <link rel='stylesheet' href='https://authority.ilabt.iminds.be/js/jquery/jquery-ui.css' />
167 <script src='https://authority.ilabt.iminds.be/js/jquery/jquery-ui.min.js'></script>
168 <script src="//java.com/js/dtjava.js"></script>
169 <script src='https://authority.ilabt.iminds.be/js/jfed_webstart_f4fportal.js'></script>
170
171 {% endblock %}