root / ui / templates / home.html @ 46990631
History | View | Annotate | Download (23.6 kB)
1 |
<!doctype html> |
---|---|
2 |
<html>
|
3 |
|
4 |
{% load i18n %} |
5 |
<head>
|
6 |
<title>~okeanos</title> |
7 |
|
8 |
<!--<meta http-equiv="X-UA-Compatible" content="IE=7">-->
|
9 |
<link href="http://fonts.googleapis.com/css?family=Ubuntu&subset=latin,greek" rel="stylesheet" type="text/css" > |
10 |
<link href='http://fonts.googleapis.com/css?family=Open+Sans&subset=latin,greek' rel='stylesheet' type='text/css'> |
11 |
|
12 |
<link rel="shortcut icon" href="{{ UI_MEDIA_URL }}favicon.ico" /> |
13 |
|
14 |
{% comment %} |
15 |
<script type="text/javascript" src="{% url javascript_catalog %}"></script> |
16 |
{% endcomment %} |
17 |
|
18 |
<link rel="stylesheet" type="text/css" href="{{ SYNNEFO_CSS_URL }}main.css"/> |
19 |
<!--[if IE]>
|
20 |
<style type="text/css" media="all">@import url({{ SYNNEFO_CSS_URL }}ie.css);</style>
|
21 |
<![endif]-->
|
22 |
|
23 |
<script src="{{ SYNNEFO_JS_LIB_URL }}jquery.js"></script> |
24 |
<script src="{{ SYNNEFO_JS_LIB_URL}}jquery.cookie.js"></script> |
25 |
<script src="{{ SYNNEFO_JS_LIB_URL}}jquery.client.js"></script> |
26 |
<script src="{{ SYNNEFO_JS_LIB_URL}}jquery.tools.min.js"></script> |
27 |
<script src="{{ SYNNEFO_JS_LIB_URL}}jquery.dataTables.min.js"></script> |
28 |
<script src="{{ SYNNEFO_JS_LIB_URL}}ZeroClipboard.js"></script> |
29 |
|
30 |
|
31 |
<script src="{{ SYNNEFO_JS_LIB_URL}}underscore.js"></script> |
32 |
<script src="{{ SYNNEFO_JS_LIB_URL}}underscore.string.js"></script> |
33 |
<script src="{{ SYNNEFO_JS_LIB_URL}}backbone.js"></script> |
34 |
<script src="{{ SYNNEFO_JS_LIB_URL}}json2.js"></script> |
35 |
<script src="{{ SYNNEFO_JS_LIB_URL}}stacktrace.js"></script> |
36 |
|
37 |
<!--[if (gte IE 6)&(lte IE 7)]>
|
38 |
<script src="{{ SYNNEFO_JS_LIB_URL}}selectivizr.js"></script>
|
39 |
<! [endif] -->
|
40 |
|
41 |
<!--[if IE]>
|
42 |
<script src="{{ SYNNEFO_JS_URL}}ui/ie_fixes.js"></script>
|
43 |
<![endif]-->
|
44 |
|
45 |
<script src="{{ SYNNEFO_JS_URL}}utils.js"></script> |
46 |
<script src="{{ SYNNEFO_JS_URL}}sync.js"></script> |
47 |
<script src="{{ SYNNEFO_JS_URL}}models.js"></script> |
48 |
<script src="{{ SYNNEFO_JS_URL}}views.js"></script> |
49 |
|
50 |
<script src="{{ SYNNEFO_JS_WEB_URL}}ui_vms_base_view.js"></script> |
51 |
<script src="{{ SYNNEFO_JS_WEB_URL}}ui_error_view.js"></script> |
52 |
<script src="{{ SYNNEFO_JS_WEB_URL}}ui_icon_view.js"></script> |
53 |
<script src="{{ SYNNEFO_JS_WEB_URL}}ui_single_view.js"></script> |
54 |
<script src="{{ SYNNEFO_JS_WEB_URL}}ui_list_view.js"></script> |
55 |
<script src="{{ SYNNEFO_JS_WEB_URL}}ui_networks_view.js"></script> |
56 |
<script src="{{ SYNNEFO_JS_WEB_URL}}ui_metadata_view.js"></script> |
57 |
<script src="{{ SYNNEFO_JS_WEB_URL}}ui_feedback_view.js"></script> |
58 |
<script src="{{ SYNNEFO_JS_WEB_URL}}ui_create_view.js"></script> |
59 |
<script src="{{ SYNNEFO_JS_WEB_URL}}ui_connect_view.js"></script> |
60 |
<script src="{{ SYNNEFO_JS_WEB_URL}}ui_main_view.js"></script> |
61 |
|
62 |
<!-- the following views require refactor -->
|
63 |
<script src="{{ SYNNEFO_JS_URL }}invitations.js"></script> |
64 |
<script src="{{ SYNNEFO_JS_URL }}synnefo.js"></script> |
65 |
|
66 |
<script>
|
67 |
// empty object for console to avoid errors in browsers that don't support it
|
68 |
if (!window.console) {window.console = {}; window.console.log = window.console.info = window.console.debug =
|
69 |
window.console.error = function() {}};
|
70 |
|
71 |
// initialize zero clipboard
|
72 |
ZeroClipboard.setMoviePath( '{{ SYNNEFO_JS_LIB_URL}}ZeroClipboard.swf' );
|
73 |
|
74 |
//populate available image icons array
|
75 |
var os_icons = {{image_icons|safe}};
|
76 |
|
77 |
// timeout value from settings.py
|
78 |
var TIMEOUT = {{ timeout }};
|
79 |
var TIMEOUTS_OCCURED = 0;
|
80 |
var SKIP_TIMEOUTS = 1;
|
81 |
var UPDATE_INTERVAL = {{ update_interval }};
|
82 |
var LOGOUT_REDIRECT = '{{ logout_redirect }}';
|
83 |
var INVITATIONS_URL = "{% url invitations %}";
|
84 |
var INVITATIONS_TITLE = "{% trans "Invite people" %}";
|
85 |
var APP_DEBUG = {% if DEBUG %}true{% else %}false{% endif %};
|
86 |
var FEEDBACK_URL = "{% url feedback %}";
|
87 |
var FEEDBACK_TITLE = "{% trans "Send feedback" %}";
|
88 |
var API_OVERLAY_TITLE = "{% trans "API access" %}";
|
89 |
var API_OVERLAY_SUBCONTENT = "{% trans "The API key provides full access to your <em>~okeanos</em> account, so always keep it private." %}";
|
90 |
|
91 |
STATE_TEXTS = {
|
92 |
'UNKNOWN': '{% trans "Unknown" %}',
|
93 |
'BUILD': '{% trans "Building..." %}',
|
94 |
'FIREWALL': '{% trans "Firewall change..." %}',
|
95 |
'REBOOT': '{% trans "Rebooting..." %}',
|
96 |
'STOPPED':'{% trans "Stopped" %}',
|
97 |
'ACTIVE': '{% trans "Running" %}',
|
98 |
'ERROR': '{% trans "Error" %}',
|
99 |
'DELETE': '',
|
100 |
'DESTROY': '{% trans "Destroying..." %}',
|
101 |
'BUILD_INIT': '{% trans "Building..." %}',
|
102 |
'BUILD_COPY': '{% trans "Building..." %}',
|
103 |
'BUILD_FINAL': '{% trans "Building..." %}',
|
104 |
'SHUTDOWN': '{% trans "Shutting down..." %}',
|
105 |
'START': '{% trans "Starting..." %}',
|
106 |
'CONNECT': '{% trans "Connecting..." %}',
|
107 |
'DISCONNECT': '{% trans "Disconnecting..." %}'
|
108 |
}
|
109 |
|
110 |
|
111 |
|
112 |
// building statuses
|
113 |
var BUILDING_MESSAGES = {
|
114 |
'INIT': '{% trans "Initializing..." %}',
|
115 |
'COPY': '{% trans "{0} of {1} ({2}%)" %}',
|
116 |
'FINAL': '{% trans "Finalizing..." %}'
|
117 |
}
|
118 |
|
119 |
var ERROR_OVERRIDES = {
|
120 |
// error message header
|
121 |
'HEADER' : '{% trans "Error" %}',
|
122 |
// default
|
123 |
'DEFAULT' : '{% trans "Could not contact the service. Please check your network connectivity and try again." %}',
|
124 |
// bad request
|
125 |
'400' : '{% trans "Malformed request." %}',
|
126 |
// not found
|
127 |
'404' : '{% trans "Your request has failed. Resource not found." %}',
|
128 |
// internal server error
|
129 |
'500' : '{% trans "There has been an Internal Error. Our administrators have been notified." %}',
|
130 |
// service unavailable
|
131 |
'501' : '{% trans "This server has not been implemented yet." %}',
|
132 |
// service unavailable
|
133 |
'502' : '{% trans "Bad Gateway error." %}',
|
134 |
// service unavailable
|
135 |
'503' : '{% trans "This service is unavailable right now, please try again later." %}',
|
136 |
// no server handshake
|
137 |
'0' : '{% trans "Could not contact the server." %}',
|
138 |
// no images found
|
139 |
'-212' : '{% trans "Cannot show the Create machine wizard: No images found." %}',
|
140 |
// no flavors found
|
141 |
'-213' : '{% trans "Cannot show the Create machine wizard: No machine configurations found." %}',
|
142 |
// error box title
|
143 |
'GENERIC_POPUP_HEADER' : '{% trans "Something seems to have gone wrong :( Here is what happened:" %}',
|
144 |
// no advanced details
|
145 |
'NO_DETAILS' : '{% trans "Νο advanced details provided" %}',
|
146 |
// timeout message
|
147 |
'TIMEOUT' : '{% trans "It seems the server takes too long to respond, please check your network connectivity" %}'
|
148 |
};
|
149 |
|
150 |
var SUGGESTED_FLAVORS = {{ suggested_flavors|safe }};
|
151 |
var SUGGESTED_ROLES = {{ suggested_roles|safe }}
|
152 |
|
153 |
var SUCCESS = {
|
154 |
'HEADER' : '{% trans "Success" %}',
|
155 |
'DEFAULT' : '{% trans "Your request has been succefully executed." %}',
|
156 |
'PASSWORD' : '{% trans "Password:" %}',
|
157 |
'CREATE_VM_SUCCESS' : '{% trans "Success" %}',
|
158 |
'CREATE_VM_SUCCESS_ONE' : '{% trans "Your new machine is now buidling... (this might take a few minutes)" %}',
|
159 |
'CREATE_VM_SUCCESS_TWO' : '{% trans "Write down your password now:" %}',
|
160 |
'CREATE_VM_SUCCESS_THREE' : '{% trans "You will need this later to connect to your machine." %}',
|
161 |
'CREATE_VM_SUCCESS_FOUR' : '{% trans "After closing this window you will NOT be able to retrieve it again." %}'
|
162 |
};
|
163 |
|
164 |
var VARIOUS = {
|
165 |
'CONFIRM' : '{% trans "Confirm" %}',
|
166 |
'CANCEL' : '{% trans "Cancel" %}',
|
167 |
'APPLY' : '{% trans "Apply" %}',
|
168 |
'OFF' : '{% trans "Off" %}',
|
169 |
'ON' : '{% trans "On" %}'
|
170 |
};
|
171 |
|
172 |
</script>
|
173 |
</head>
|
174 |
|
175 |
<body id="app"> |
176 |
<!--<img id="okeanos-image" src="{{ SYNNEFO_IMAGES_URL }}body-bg2.png" />-->
|
177 |
<div id="container"> |
178 |
<div id="header"> |
179 |
<div id="user"> |
180 |
<div class="usermenu"> |
181 |
<div class="username">{{ request.user.uniq }}</div> |
182 |
<ul class="useractions"> |
183 |
<li class="invitations"><a class="action" href="#">{% trans "invite friends..." %}</a></li> |
184 |
<li class="feedback"><a class="action" href="#">{% trans "send feedback..." %}</a></li> |
185 |
<li class="api"><a class="action" href="#">{% trans "API access..." %}</a></li> |
186 |
<li class="logout last"><a class="action" href="#">{% trans "logout" %}</a></li> |
187 |
</ul>
|
188 |
</div>
|
189 |
<div class="langmenu"> |
190 |
<a class="current_lang">en</a> |
191 |
{% comment %} |
192 |
{% get_available_languages as LANGUAGES %} |
193 |
{% for lang in LANGUAGES %} |
194 |
<a {% if == lang.0 %} |
195 |
class="current_lang" {% else %} href="/lang/?l={{lang.0}}" {% endif %}>{{lang.0}}</a> |
196 |
|
197 |
{% if not forloop.last %}<span class="sep">~</span>{% endif %} |
198 |
{% endfor %} |
199 |
{% endcomment %} |
200 |
</div>
|
201 |
</div>
|
202 |
<div class="header-logo"> |
203 |
<a href="/"> |
204 |
<img src="{{ SYNNEFO_IMAGES_URL }}okeanos-logo-alpha.png" alt="okeanos (alpha)"/> |
205 |
</a>
|
206 |
</div>
|
207 |
</div>
|
208 |
<div id="content"> |
209 |
<div id="wrapper" class="clearfix"> |
210 |
|
211 |
<div class="panes-menu clearfix"> |
212 |
<!-- tabs -->
|
213 |
<div class="tab-name">{% trans "machines" %}</div> |
214 |
<ul class="css-tabs"> |
215 |
<li><a href="machines" title="{% trans "manage virtual " %}" |
216 |
class="primary" id="machines_view_link"> |
217 |
<img src="{{ SYNNEFO_IMAGES_URL }}machines-icon.png" /></a></li> |
218 |
<li><a href="networks" title="{% trans "configure " %}" |
219 |
class="primary" id="networks_view_link"> |
220 |
<img src="{{ SYNNEFO_IMAGES_URL }}networks-icon.png" /></a></li> |
221 |
<li class="hidden"><a href="disks" title="{% trans "manage storage " %}" |
222 |
class="primary" id="disks_view_link"> |
223 |
<img src="{{ SYNNEFO_IMAGES_URL }}disks-icon.png" /></a></li> |
224 |
</ul>
|
225 |
</div>
|
226 |
<div class="css-panes"> |
227 |
<div id="machines-pane" class="pane" style="display:block;"> |
228 |
{% include "partials/machines.html" %} |
229 |
</div>
|
230 |
<div id="networks-pane" class="pane"> |
231 |
{% include "partials/networks.html" %} |
232 |
</div>
|
233 |
<div id="disks-pane" class="pane"></div> |
234 |
|
235 |
<div class="confirm_multiple clearfix" id="multiple_actions_container"> |
236 |
<div class="confirm_multiple_actions confirm_multiple_cont clearfix"> |
237 |
<p>{% trans "Your actions will affect" %} <span class="actionLen">XX</span> {% trans "machines" %}</p> |
238 |
<button class="yes">{% trans "Confirm All" %}</button> |
239 |
<button class="no">{% trans "Cancel All" %}</button> |
240 |
</div>
|
241 |
<div class="confirm_reboot_required confirm_multiple_cont clearfix"> |
242 |
<p><span class="actionLen"></span> {% trans "machines needs to be rebooted for changes to apply" %}</p> |
243 |
<button class="yes">{% trans "Reboot All" %}</button> |
244 |
<button class="no">{% trans "Cancel All" %}</button> |
245 |
<div class="reboot-machines-list"></div> |
246 |
</div>
|
247 |
</div>
|
248 |
|
249 |
</div>
|
250 |
</div>
|
251 |
</div>
|
252 |
</div>
|
253 |
|
254 |
<!-- activate tabs with JavaScript -->
|
255 |
<script>
|
256 |
|
257 |
//load opera css fixes
|
258 |
if ($.browser.opera) {
|
259 |
$("<link/>", {
|
260 |
rel: "stylesheet",
|
261 |
type: "text/css",
|
262 |
href: "{{ SYNNEFO_CSS_URL }}opera.css"
|
263 |
}).appendTo("head");
|
264 |
}
|
265 |
|
266 |
$(document).ready(function(){
|
267 |
|
268 |
{% if current_lang == "el" and not DEBUG %}
|
269 |
window.location = "/lang/?l=en";
|
270 |
{% endif %}
|
271 |
|
272 |
// user menu interaction
|
273 |
var resetUserMenu = function() {
|
274 |
$(this).removeClass("hovered");
|
275 |
$(this).removeClass("active");
|
276 |
}
|
277 |
|
278 |
$(".usermenu").live("click", function(){
|
279 |
$(this).addClass("active");
|
280 |
});
|
281 |
$(".usermenu").bind('mouseleave', resetUserMenu);
|
282 |
$(".usermenu").live("mouseover", function(){
|
283 |
$(this).addClass("hovered");
|
284 |
});
|
285 |
|
286 |
$(".usermenu li").mouseenter(function(){$(this).addClass("hovered")})
|
287 |
$(".usermenu li").mouseleave(function(){$(this).removeClass("hovered")});
|
288 |
|
289 |
// bind menu actions
|
290 |
$(".usermenu .logout").click(function() {
|
291 |
snf.ui.logout();
|
292 |
});
|
293 |
|
294 |
$(".usermenu .invitations").click(show_invitations);
|
295 |
$(".usermenu .api").click(function(){
|
296 |
synnefo.ui.main.api_info_view.show();
|
297 |
});
|
298 |
|
299 |
});
|
300 |
|
301 |
function positionBottomMessages() {
|
302 |
var el = $("#multiple_actions_container");
|
303 |
}
|
304 |
|
305 |
$(window).bind("load", function() {
|
306 |
var footerHeight = 0;
|
307 |
var footerTop = 0;
|
308 |
var $footer = $("#footer-container");
|
309 |
|
310 |
positionFooter();
|
311 |
function positionFooter() {
|
312 |
footerHeight = 80;
|
313 |
footerTop = ($(window).scrollTop()+$(window).height()-footerHeight)+"px";
|
314 |
if (($(document.body).height()+footerHeight) < $(window).height()) {
|
315 |
|
316 |
$footer.css({
|
317 |
position: "absolute"
|
318 |
}).css({
|
319 |
top: footerTop
|
320 |
})
|
321 |
} else {
|
322 |
|
323 |
if ($footer.css("position") == "static") {
|
324 |
if ($(document.body).height() < $(window).height()) {
|
325 |
$footer.css({
|
326 |
position: "absolute"
|
327 |
}).css({
|
328 |
top: footerTop
|
329 |
})
|
330 |
}
|
331 |
} else {
|
332 |
|
333 |
$footer.css({
|
334 |
position: "static"
|
335 |
})
|
336 |
}
|
337 |
}
|
338 |
|
339 |
}
|
340 |
window.positionFooter = _.throttle(positionFooter, 100);
|
341 |
$(window).scroll(positionFooter).resize(positionFooter)
|
342 |
});
|
343 |
</script>
|
344 |
|
345 |
<!-- base notification for error/success reporting -->
|
346 |
<a id="notification" rel="#error-success" href="#"></a> |
347 |
<a id="msgbox" rel="#notification-box" href="#"></a> |
348 |
<a id="feedbackbox" rel="#feedback-form" href="#"></a> |
349 |
|
350 |
<div class="overlay" id="generic-overlay-tpl"> |
351 |
<div class="overlay-inner"> |
352 |
<h3 class="header clearfix"> |
353 |
<span class="subtitle"></span> |
354 |
<span class="title"></span> |
355 |
<span class="closeme">close</span></h3> |
356 |
<div class="container"> |
357 |
<div class="content"> |
358 |
</div>
|
359 |
</div>
|
360 |
<div class="footer"></div> |
361 |
</div>
|
362 |
</div>
|
363 |
|
364 |
<div id="error-overlay-content" class="hidden"> |
365 |
<div class="error-nav hidden clearfix"> |
366 |
<span class="indicator"><span class="num">1</span> <span |
367 |
class="ind-msg">new error occured</span></span> |
368 |
<span class="show-next nav-btn">{% trans "next" %}</span> |
369 |
<span class="show-prev nav-btn">{% trans "previous" %}</span> |
370 |
</div>
|
371 |
<div class="message"><p></p></div> |
372 |
<div class="error-details"> |
373 |
<span class="key">{% trans "Module" %}</span> |
374 |
<span class="value error-module"></span> |
375 |
|
376 |
<span class="key">{% trans "Code" %}</span> |
377 |
<span class="value error-code"></span> |
378 |
|
379 |
<span class="key">{% trans "Type" %}</span> |
380 |
<span class="value error-type"></span> |
381 |
|
382 |
<span class="key details">{% trans "Details" %}</span> |
383 |
<div class="value error-more-details"><p></p></div> |
384 |
</div>
|
385 |
|
386 |
<!--<div class="navigation">-->
|
387 |
<!--<span class="next-error">{% trans "next error" %}</span>-->
|
388 |
<!--<span class="previous-error">{% trans "previous error" %}</span>-->
|
389 |
<!--</div>-->
|
390 |
|
391 |
<!--<div class="date">-->
|
392 |
<!--<span class="error-date"></span>-->
|
393 |
<!--</div>-->
|
394 |
|
395 |
<div class="actions"> |
396 |
<span class="show-details">{% trans "Show details" %}</span> |
397 |
<span class="hide-details">{% trans "Hide details" %}</span> |
398 |
<span class="report-error">{% trans "Send report" %}</span> |
399 |
<span class="reload-app">{% trans "Reload" %}</span> |
400 |
</div>
|
401 |
</div>
|
402 |
|
403 |
<div id="feedback-overlay-content" class="hidden overlay-content feedback-form"> |
404 |
<div class="description"> |
405 |
<p>
|
406 |
{% blocktrans %}~okeanos is currently in alpha test and we would appreciate any kind of feedback. |
407 |
We welcome any suggestions, questions and bug reports you may have.{% endblocktrans %} |
408 |
</p>
|
409 |
</div>
|
410 |
<div class="description messages noborder"> |
411 |
<p class="success-message hidden"> |
412 |
{% trans "thank you for submiting your feedback" %} |
413 |
</p>
|
414 |
<p class="error-message hidden"> |
415 |
{% trans "some error occured submiting submiting your feedback, please try again later" %} |
416 |
</p>
|
417 |
<p class="sending-message hidden"> |
418 |
{% blocktrans %}Sending feedback...{% endblocktrans %} |
419 |
</p>
|
420 |
</div>
|
421 |
<div class="form"> |
422 |
<div class="form-field"> |
423 |
<label for{% trans "Please your here, provide many as " %}</label |
424 |
<textarea ="feedback-message"> |
425 |
</textarea>
|
426 |
</div>
|
427 |
<div class="form-actions clearfix noborder"> |
428 |
<span class="form-action submit">{% trans "send feedback" %}</span> |
429 |
</div>
|
430 |
</div>
|
431 |
</div>
|
432 |
<div class="modal" id="feedback-form" class="feedback notification-box"> |
433 |
<h3 class="popup-header"> |
434 |
<span class="header-box">{% trans "Send feedback" %}</span> |
435 |
</h3>
|
436 |
<div class="popup-body"> |
437 |
<div class="popup-body-inner"> |
438 |
<div class="form-container"> |
439 |
<p class="feedback-intro"> |
440 |
{% blocktrans %}~okeanos is currently in alpha test and we would appreciate any kind of feedback. |
441 |
We welcome any suggestions, questions and bug reports you may have.{% endblocktrans %}</p>
|
442 |
<form id="feedback-form"> |
443 |
<label for="feedback-msg">{% trans "Please describe your problem here, provide as many details as possible" %}</label> |
444 |
<div class="description"></div> |
445 |
<div class="empty-error-msg">{% trans "Please provide some feedback" %}</div> |
446 |
<textarea name="feedback-msg" class="feedback-text"></textarea> |
447 |
|
448 |
<input type="checkbox" name="submit-submit-data" class='submit-data' /> |
449 |
<input type="submit" value="{% trans "submit " %}" class="submit" /> |
450 |
<textarea name="feedback-data" class="data-text"></textarea> |
451 |
</form>
|
452 |
</div>
|
453 |
|
454 |
<div class="message sending">{% trans "submiting your data....." %}</div> |
455 |
<div class="message success"> |
456 |
{% trans "thank you for submiting your feedback" %} |
457 |
<span class="close-msg-box"> {% trans "close feedback" %}</span></div> |
458 |
<div class="message errormsg"> |
459 |
{% trans "some error occured submiting submiting your feedback, please try again later" %} |
460 |
<span class="close-msg-box"> {% trans "close feedback" %}</span></div> |
461 |
</div>
|
462 |
</div>
|
463 |
</div>
|
464 |
</div>
|
465 |
|
466 |
<div id="api-info-overlay" class="overlay-content overlay-info hidden"> |
467 |
<div class="description"> |
468 |
<p>{% blocktrans with EXTERNAL_CLIENT_URL as EXTERNAL_CLIENT_URL %}Use the following API key along with the <a |
469 |
href="{{ EXTERNAL_CLIENT_URL }}">./kamaki</a> client to manage |
470 |
your cloud resources from outside this page.{% endblocktrans %}</p>
|
471 |
</div>
|
472 |
<div class="copy-content"> |
473 |
<p></p> |
474 |
</div>
|
475 |
<div class="description subinfo"> |
476 |
<p>
|
477 |
{% trans "The API key provides full access to your <em>~okeanos</em> account, so always keep it private." %} |
478 |
</p>
|
479 |
</div>
|
480 |
</div>
|
481 |
|
482 |
<div class="api_overlay_template"> |
483 |
<div class="api_overlay_content"> |
484 |
<p>Use the following API key along with the <a href="{{ EXTERNAL_CLIENT_URL }}">./kamaki</a> client to manage your cloud resources from outside this page.</p> |
485 |
</div>
|
486 |
</div>
|
487 |
|
488 |
<div class="modal" id="notification-box" class="notification-box"> |
489 |
<h3 class="popup-header"> |
490 |
<span class="header-box"></span> |
491 |
</h3>
|
492 |
<div class="popup-body"> |
493 |
<div class="popup-body-inner"> |
494 |
<div class="machine-now-building"></div> |
495 |
<div class="popup-separator"></div> |
496 |
<div class="password-container"> |
497 |
<div class="password"></div> |
498 |
</div>
|
499 |
<div class="sub-text"></div> |
500 |
</div>
|
501 |
</div>
|
502 |
</div>
|
503 |
|
504 |
<div id="loading-view" class="hidden"> |
505 |
<img src="{{ SYNNEFO_IMAGES_URL }}icons/indicators/small/progress.gif" /> |
506 |
<div class="header">Loading <span>~okeanos</span></div> |
507 |
<div class="info hidden"></div> |
508 |
</div>
|
509 |
{% include "footer.html" %} |
510 |
|
511 |
<script>
|
512 |
$(document).ready(function() {
|
513 |
$(".css-panes").hide();
|
514 |
|
515 |
// TODO: match <= 1.9.1
|
516 |
if ($.browser.mozilla && $.browser.version.substr(0,3) == "1.9") {
|
517 |
synnefo.config.overlay_speed = 0;
|
518 |
$.fx.off = true;
|
519 |
}
|
520 |
|
521 |
// synnefo js config
|
522 |
synnefo.config.update_interval = {{ update_interval }};
|
523 |
synnefo.config.delay_on_blur = {{ delay_on_blur }};
|
524 |
synnefo.config.blur_delay = {{ blur_delay }};
|
525 |
synnefo.config.update_hidden_views = {{ update_hidden_views }};
|
526 |
synnefo.config.handle_window_exceptions = {{ handle_window_exceptions }};
|
527 |
synnefo.config.ajax_timeout = {{ timeout }};
|
528 |
synnefo.config.skip_timeouts = {{ skip_timeouts }};
|
529 |
|
530 |
// TODO: make it dynamic
|
531 |
synnefo.config.api_url = '/api/v1.1';
|
532 |
synnefo.config.logout_url = '{{ logout_redirect }}';
|
533 |
|
534 |
synnefo.config.media_url = '{{ UI_MEDIA_URL }}';
|
535 |
synnefo.config.js_url = '{{ SYNNEFO_JS_URL }}';
|
536 |
synnefo.config.indicators_icons_url = '{{ SYNNEFO_IMAGES_URL }}icons/indicators/';
|
537 |
synnefo.config.machines_icons_url = '{{ SYNNEFO_IMAGES_URL }}icons/machines/';
|
538 |
|
539 |
synnefo.ui.init();
|
540 |
|
541 |
synnefo.ui.main.bind("initial", function(){})
|
542 |
})
|
543 |
</script>
|
544 |
</body>
|
545 |
</html>
|