Statistics
| Branch: | Tag: | Revision:

root / ui / templates / home.html @ e97e7c44

History | View | Annotate | Download (25.3 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
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
10

    
11
    <link href="https://fonts.googleapis.com/css?family=Ubuntu&subset=latin,greek" rel="stylesheet" type="text/css" >
12
    <link href='https://fonts.googleapis.com/css?family=Open+Sans&subset=latin,greek' rel='stylesheet' type='text/css'>
13

    
14
    <link rel="shortcut icon" href="{{ SYNNEFO_IMAGES_URL }}favicon.ico" />
15

    
16
    {% comment %}
17
    <script type="text/javascript" src="{% url javascript_catalog %}"></script> 
18
    {% endcomment %}
19

    
20
    <link rel="stylesheet" type="text/css" href="{{ SYNNEFO_CSS_URL }}main.css"/>
21
    <!--[if IE]>
22
        <style type="text/css" media="all">@import url({{ SYNNEFO_CSS_URL }}ie.css);</style>
23
    <![endif]-->
24

    
25
    <script src="{{ SYNNEFO_JS_LIB_URL }}jquery.js"></script>
26
    <script src="{{ SYNNEFO_JS_LIB_URL}}jquery.cookie.js"></script>
27
    <script src="{{ SYNNEFO_JS_LIB_URL}}jquery.client.js"></script>
28
    <script src="{{ SYNNEFO_JS_LIB_URL}}jquery.tools.min.js"></script>
29
    <script src="{{ SYNNEFO_JS_LIB_URL}}jquery.dataTables.min.js"></script>
30
    <script src="{{ SYNNEFO_JS_LIB_URL}}jquery.pagination.js"></script>
31
    <script src="{{ SYNNEFO_JS_LIB_URL}}jquery.zclip.js"></script>
32
    <script src="{{ SYNNEFO_JS_LIB_URL}}jquery.base64.js"></script>
33

    
34

    
35
    <script src="{{ SYNNEFO_JS_LIB_URL}}underscore.js"></script>
36
    <script src="{{ SYNNEFO_JS_LIB_URL}}underscore.string.js"></script>
37
    <script src="{{ SYNNEFO_JS_LIB_URL}}backbone.js"></script>
38
    <script src="{{ SYNNEFO_JS_LIB_URL}}json2.js"></script>
39
    <script src="{{ SYNNEFO_JS_LIB_URL}}stacktrace.js"></script>
40

    
41
    <!--[if (lt IE 7)]>
42
        <script src="{{ SYNNEFO_JS_LIB_URL }}selectivizr.js"></script>
43
    <! [endif] -->
44

    
45
    <!--[if IE]>
46
        <script src="{{ SYNNEFO_JS_URL }}ui/ie_fixes.js"></script>
47
    <![endif]-->
48
    
49
    <script src="{{ SYNNEFO_JS_URL }}utils.js"></script>
50
    <script src="{{ SYNNEFO_JS_URL }}sync.js"></script>
51
    <script src="{{ SYNNEFO_JS_URL }}models.js"></script>
52
    <script src="{{ SYNNEFO_JS_URL }}views.js"></script>
53

    
54
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_vms_base_view.js"></script>
55
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_model_views.js"></script>
56
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_error_view.js"></script>
57
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_icon_view.js"></script>
58
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_single_view.js"></script>
59
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_list_view.js"></script>
60
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_networks_view.js"></script>
61
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_metadata_view.js"></script>
62
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_feedback_view.js"></script>
63
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_invitations_view.js"></script>
64
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_create_view.js"></script>
65
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_connect_view.js"></script>
66
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_public_keys_view.js"></script>
67

    
68
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_router.js"></script>
69
    <script src="{{ SYNNEFO_JS_WEB_URL }}ui_main_view.js"></script>
70

    
71
    <!-- the following views require refactor -->
72
    <script src="{{ SYNNEFO_JS_URL }}invitations.js"></script>
73
    <script src="{{ SYNNEFO_JS_URL }}synnefo.js"></script>
74
    
75
    <script>
76
        // empty object for console to avoid errors in browsers that don't support it
77
        if (!window.console) {window.console = {}; window.console.log = window.console.info = window.console.debug =
78
            window.console.error = function() {}};
79
        
80
        //populate available image icons array
81
        var os_icons = {{image_icons|safe}};
82
        
83
        // timeout value from settings.py
84
        var TIMEOUT = {{ timeout }};
85
        var TIMEOUTS_OCCURED = 0;
86
        var SKIP_TIMEOUTS = 1;
87
        var UPDATE_INTERVAL = {{ update_interval }};
88
        var LOGOUT_REDIRECT = '{{ logout_redirect }}';
89
        var INVITATIONS_URL = "{% url invitations %}";
90
        var INVITATIONS_TITLE = "{% trans "Invite people" %}";
91
        var APP_DEBUG = {% if DEBUG %}true{% else %}false{% endif %};
92
        var FEEDBACK_URL = "{% url feedback %}";
93
        var FEEDBACK_TITLE = "{% trans "Send feedback" %}";
94
        var API_OVERLAY_TITLE = "{% trans "API access" %}";
95
        var API_OVERLAY_SUBCONTENT = "{% trans "The API key provides full access to your <em>~okeanos</em> account, so always keep it private." %}";
96

97
        STATE_TEXTS = {
98
            'UNKNOWN': '{% trans "Unknown" %}',
99
            'BUILD':  '{% trans "Building..." %}',
100
            'FIREWALL':  '{% trans "Firewall change..." %}',
101
            'REBOOT': '{% trans "Rebooting..." %}',
102
            'STOPPED':'{% trans "Stopped" %}',
103
            'ACTIVE': '{% trans "Running" %}',
104
            'ERROR':  '{% trans "Error" %}',
105
            'DELETE': '',
106
            'DESTROY': '{% trans "Destroying..." %}',
107
            'BUILD_INIT':  '{% trans "Building..." %}',
108
            'BUILD_COPY':  '{% trans "Building..." %}',
109
            'BUILD_FINAL':  '{% trans "Building..." %}',
110
            'SHUTDOWN': '{% trans "Shutting down..." %}',
111
            'START': '{% trans "Starting..." %}',
112
            'CONNECT': '{% trans "Connecting..." %}',
113
            'DISCONNECT': '{% trans "Disconnecting..." %}'
114
        }
115

116

117

118
        // building statuses
119
        var BUILDING_MESSAGES = {
120
            'INIT': '{% trans "Initializing..." %}',
121
            'COPY': '{% trans "{0} of {1} ({2}%)" %}',
122
            'FINAL': '{% trans "Finalizing..." %}'
123
        }
124

125
        var ERROR_OVERRIDES = {
126
            // error message header
127
            'HEADER' : '{% trans "Error" %}',
128
            // default
129
            'DEFAULT' : '{% trans "Could not contact the service. Please check your network connectivity and try again." %}',
130
            // bad request
131
            '400' : '{% trans "Malformed request." %}',
132
            // not found
133
            '404' : '{% trans "Your request has failed. Resource not found." %}',
134
            // internal server error
135
            '500' : '{% trans "There has been an Internal Error. Our administrators have been notified." %}',
136
            // service unavailable
137
            '501' : '{% trans "This server has not been implemented yet." %}',
138
            // service unavailable
139
            '502' : '{% trans "Bad Gateway error." %}',
140
            // service unavailable
141
            '503' : '{% trans "This service is unavailable right now, please try again later." %}',
142
            // no server handshake
143
            '0' : '{% trans "Could not contact the server." %}',
144
            // no images found
145
            '-212' : '{% trans "Cannot show the Create machine wizard: No images found." %}',
146
            // no flavors found
147
            '-213' : '{% trans "Cannot show the Create machine wizard: No machine configurations found." %}',
148
            // error box title
149
            'GENERIC_POPUP_HEADER' : '{% trans "Something seems to have gone wrong :( Here is what happened:" %}',
150
            // no advanced details
151
            'NO_DETAILS' : '{% trans "Νο advanced details provided" %}',
152
            // timeout message
153
            'TIMEOUT' : '{% trans "It seems the server takes too long to respond, please check your network connectivity" %}'
154
        };
155

156
        var SUGGESTED_FLAVORS = {{ suggested_flavors|safe }};
157
        var SUGGESTED_ROLES = {{ suggested_roles|safe }}
158

159
        var SUCCESS = {
160
            'HEADER' : '{% trans "Success" %}',
161
            'DEFAULT' : '{% trans "Your request has been succefully executed." %}',
162
            'PASSWORD' : '{% trans "Password:" %}',
163
            'CREATE_VM_SUCCESS' : '{% trans "Success" %}',
164
            'CREATE_VM_SUCCESS_ONE' : '{% trans "Your new machine is now buidling... (this might take a few minutes)" %}',
165
            'CREATE_VM_SUCCESS_TWO' : '{% trans "Write down your password now:" %}',
166
            'CREATE_VM_SUCCESS_THREE' : '{% trans "You will need this later to connect to your machine." %}',
167
            'CREATE_VM_SUCCESS_FOUR' : '{% trans "After closing this window you will NOT be able to retrieve it again." %}'
168
        };
169

170
        var VARIOUS = {
171
            'CONFIRM' : '{% trans "Confirm" %}',
172
            'CANCEL' : '{% trans "Cancel" %}',
173
            'APPLY' : '{% trans "Apply" %}',
174
            'OFF' : '{% trans "Off" %}',
175
            'ON' : '{% trans "On" %}'
176
        };
177

    
178
    </script>
179
</head>
180

    
181
<body id="app">
182
    <!--<img id="okeanos-image" src="{{ SYNNEFO_IMAGES_URL }}body-bg2.png" />-->
183
    <div id="container">
184
        <div id="header">
185
            <div id="user">
186
                <div class="usermenu">
187
                    <div class="username">{{ request.user.uniq }}</div>
188
                    <ul class="useractions">
189
                        <li class="invitations"><a class="action" href="#">{% trans "invite friends..." %}</a></li>
190
                        <li class="feedback"><a class="action" href="#">{% trans "send feedback..." %}</a></li>
191
                        <li class="api"><a class="action" href="#">{% trans "API access..." %}</a></li>
192
                        <li class="public_keys"><a class="action" href="#">{% trans "ssh public keys..." %}</a></li>
193
                        <li class="logout last"><a class="action" href="#">{% trans "logout" %}</a></li>
194
                    </ul>
195
                </div>
196
                <div class="langmenu">
197
                    <a class="current_lang">en</a>
198
                    {% comment %}
199
                {% get_available_languages as LANGUAGES %}
200
                {% for lang in LANGUAGES %}
201
                <a {% if  == lang.0 %}
202
                    class="current_lang" {% else %}  href="/lang/?l={{lang.0}}" {% endif %}>{{lang.0}}</a>
203

    
204
                    {% if not forloop.last %}<span class="sep">~</span>{% endif %}
205
                    {% endfor %}
206
                {% endcomment %}
207
                </div>
208
            </div>
209
            <div class="header-logo">
210
                <a href="/">
211
                    <img src="{{ SYNNEFO_IMAGES_URL }}okeanos-logo-alpha.png" alt="okeanos (alpha)"/>
212
                </a>
213
            </div>
214
        </div>
215
        <div id="content">
216
            <div id="wrapper" class="clearfix">
217

    
218
                <div class="panes-menu clearfix">
219
                <!-- tabs -->
220
                <div class="tab-name">{% trans "machines" %}</div>
221
                <ul class="css-tabs">
222
                    <li><a href="machines" title="{% trans "manage  virtual " %}"
223
                        class="primary" id="machines_view_link">
224
                        <img src="{{ SYNNEFO_IMAGES_URL }}machines-icon.png" /></a></li>
225
                    <li><a href="networks" title="{% trans "configure " %}"
226
                        class="primary" id="networks_view_link">
227
                        <img src="{{ SYNNEFO_IMAGES_URL }}networks-icon.png" /></a></li>
228
                    <li class="hidden"><a href="disks" title="{% trans "manage  storage " %}"
229
                        class="primary" id="disks_view_link">
230
                        <img src="{{ SYNNEFO_IMAGES_URL }}disks-icon.png" /></a></li>
231
                </ul>
232
                </div>
233
                <div class="css-panes">
234
                    <div id="machines-pane" class="pane" style="display:block;">
235
                        {% include "partials/machines.html" %}
236
                    </div>
237
                    <div id="networks-pane" class="pane">
238
                        {% include "partials/networks.html" %}
239
                    </div>
240
                    <div id="disks-pane" class="pane"></div>
241

    
242
                    <div class="confirm_multiple clearfix" id="multiple_actions_container">
243
                        <div class="confirm_multiple_actions confirm-all-cont global hidden confirm_multiple_cont clearfix">
244
                            <div class="confirm-all msg">
245
                                <p>You requested multiple actions to execute (<span
246
                                    class"show">show all</span>)</p>
247
                                <button class="yes">Confirm all</button>
248
                                <button class="no">Cancel all</button>
249
                            </div>
250
                            <div class="details"></div>
251
                        </div>
252
                        <div class="ns-confirms-cont">
253
                            <div class="confirm_multiple_actions hidden confirm_multiple_cont
254
                                ns-confirm clearfix"
255
                                id="conirm_multiple_cont_template">
256
                                <div class="confirm-all msg">
257
                                    <p></p>
258
                                    <button class="yes"></button>
259
                                    <button class="no"></button>
260
                                </div>
261
                                <div class="details"></div>
262
                            </div>
263
                        </div>
264
                    </div>
265

    
266
                </div>
267
            </div>
268
        </div>
269
    </div>
270

    
271
    <!-- activate tabs with JavaScript -->
272
    <script>
273

274
        //load opera css fixes
275
        if ($.browser.opera) {
276
            $("<link/>", {
277
               rel: "stylesheet",
278
               type: "text/css",
279
               href: "{{ SYNNEFO_CSS_URL }}opera.css"
280
            }).appendTo("head");
281
        }
282

283
        $(document).ready(function(){
284

285
            {% if current_lang == "el" and not DEBUG %}
286
                window.location = "/lang/?l=en";
287
            {% endif %}
288

289
            // user menu interaction
290
            var resetUserMenu = function() {
291
                $(this).removeClass("hovered");
292
                $(this).removeClass("active");
293
            }
294

295
            $(".usermenu").live("click", function(){
296
                $(this).addClass("active");
297
            });
298
            $(".usermenu").bind('mouseleave', resetUserMenu);
299
            $(".usermenu").live("mouseover", function(){
300
                $(this).addClass("hovered");
301
            });
302

303
            $(".usermenu li").mouseenter(function(){$(this).addClass("hovered")})
304
            $(".usermenu li").mouseleave(function(){$(this).removeClass("hovered")});
305

306
            // bind menu actions
307
            $(".usermenu .logout").click(function() {
308
                synnefo.ui.logout();
309
            });
310

311
            $(".usermenu .api").click(function(){
312
                synnefo.ui.main.api_info_view.show();
313
            });
314

315
        });
316
        
317
        function positionBottomMessages() {
318
            var el = $("#multiple_actions_container");
319
        }
320

321
        $(window).bind("load", function() { 
322
               var footerHeight = 0;
323
               var footerTop = 0;
324
               var $footer = $("#footer-container");
325

326
               positionFooter();
327
               function positionFooter() {
328
                   footerHeight = 80;
329
                   footerTop = ($(window).scrollTop()+$(window).height()-footerHeight)+"px";
330
                   if (($(document.body).height()+footerHeight) < $(window).height()) {
331

332
                       $footer.css({
333
                            position: "absolute"
334
                       }).css({
335
                            top: footerTop
336
                       })
337
                    } else {
338
                    
339
                       if ($footer.css("position") == "static") {
340
                           if ($(document.body).height() < $(window).height()) {    
341
                               $footer.css({
342
                                    position: "absolute"
343
                               }).css({
344
                                    top: footerTop
345
                                })
346
                            }
347
                        } else {
348

349
                           $footer.css({
350
                               position: "static"
351
                           })
352
                       }
353
                   }
354

355
                   }
356
               window.positionFooter = _.throttle(positionFooter, 100);
357
               $(window).scroll(positionFooter).resize(positionFooter)
358
        });
359
    </script>
360

    
361
    <!-- base notification for error/success reporting -->
362
    <a id="notification" rel="#error-success" href="#"></a>
363
    <a id="msgbox" rel="#notification-box" href="#"></a>
364
    <a id="feedbackbox" rel="#feedback-form" href="#"></a>
365

    
366
    <div class="overlay" id="generic-overlay-tpl">
367
        <div class="overlay-inner">
368
            <h3 class="overlay-header clearfix">
369
                <span class="subtitle"></span>
370
                <span class="title"></span>
371
                <span class="closeme">close</span></h3>
372
            <div class="container">
373
                <div class="content">
374
                </div>
375
            </div>
376
            <div class="footer"></div>
377
        </div>
378
    </div>
379

    
380
    <div id="error-overlay-content" class="hidden">
381
        <div class="error-nav hidden clearfix">
382
            <span class="indicator"><span class="num">1</span> <span
383
                    class="ind-msg">new error occured</span></span>
384
            <span class="show-next nav-btn">{% trans "next" %}</span>
385
            <span class="show-prev nav-btn">{% trans "previous" %}</span>
386
        </div>
387
        <div class="message"><p></p></div>
388
        <div class="error-details">
389
            <span class="key">{% trans "Module" %}</span>
390
            <span class="value error-module"></span>
391

    
392
            <span class="key">{% trans "Code" %}</span>
393
            <span class="value error-code"></span>
394

    
395
            <span class="key">{% trans "Type" %}</span>
396
            <span class="value error-type"></span>
397

    
398
            <span class="key details">{% trans "Details" %}</span>
399
            <div class="value error-more-details"><p></p></div>
400
        </div>
401
        
402
        <!--<div class="navigation">-->
403
            <!--<span class="next-error">{% trans "next error" %}</span>-->
404
            <!--<span class="previous-error">{% trans "previous error" %}</span>-->
405
        <!--</div>-->
406
        
407
        <!--<div class="date">-->
408
            <!--<span class="error-date"></span>-->
409
        <!--</div>-->
410

    
411
        <div class="actions">
412
            <span class="show-details">{% trans "Show details" %}</span>
413
            <span class="hide-details">{% trans "Hide details" %}</span>
414
            <span class="report-error">{% trans "Send report" %}</span>
415
            <span class="reload-app">{% trans "Reload" %}</span>
416
        </div>
417
    </div>
418
    {% include "partials/invitations.html" %}
419
    <div id="feedback-overlay-content" class="hidden overlay-content feedback-form">
420
        <div class="description">
421
            <p>
422
                {% blocktrans %}~okeanos is currently in alpha test and we would appreciate any kind of feedback.
423
                We welcome any suggestions, questions and bug reports you may have.{% endblocktrans %}
424
            </p>
425
        </div>
426
        <div class="description messages noborder">
427
            <p class="success-message hidden">
428
            {% trans "thank you for submiting your feedback" %}
429
            </p>
430
            <p class="error-message hidden">
431
                {% trans "some error occured submiting submiting your feedback, please try again later" %}
432
            </p>
433
            <p class="sending-message hidden">
434
            {% blocktrans %}Sending feedback...{% endblocktrans %}
435
            </p>
436
        </div>
437
        <div class="form">
438
            <div class="form-field">
439
                <label for{% trans "Please  your  here, provide  many  as " %}</label
440
                <textarea ="feedback-message"> 
441
                </textarea>
442
            </div>
443
            <div class="form-actions clearfix noborder">
444
                <span class="form-action submit">{% trans "send feedback" %}</span>
445
            </div>
446
        </div>
447
    </div>
448
    <div class="modal" id="feedback-form" class="feedback notification-box">
449
        <h3 class="popup-header overlay-header">
450
            <span class="header-box">{% trans "Send feedback" %}</span>
451
        </h3>
452
        <div class="popup-body">
453
            <div class="popup-body-inner">
454
                <div class="form-container">
455
                <p class="feedback-intro">
456
                {% blocktrans %}~okeanos is currently in alpha test and we would appreciate any kind of feedback.
457
We welcome any suggestions, questions and bug reports you may have.{% endblocktrans %}</p>
458
                <form id="feedback-form">
459
                    <label for="feedback-msg">{% trans "Please describe your problem here, provide as many details as possible" %}</label>
460
                    <div class="description"></div>
461
                    <div class="empty-error-msg">{% trans "Please provide some feedback" %}</div>
462
                    <textarea name="feedback-msg" class="feedback-text"></textarea>
463

    
464
                    <input type="checkbox" name="submit-submit-data" class='submit-data' />
465
                    <input type="submit" value="{% trans "submit " %}" class="submit" />
466
                    <textarea name="feedback-data" class="data-text"></textarea>
467
                </form>
468
            </div>
469

    
470
            <div class="message sending">{% trans "submiting your data....." %}</div>
471
            <div class="message success">
472
                {% trans "thank you for submiting your feedback" %}
473
                <span class="close-msg-box"> {% trans "close feedback" %}</span></div>
474
            <div class="message errormsg">
475
                {% trans "some error occured submiting submiting your feedback, please try again later" %}
476
                <span class="close-msg-box"> {% trans "close feedback" %}</span></div>
477
            </div>
478
            </div>
479
        </div>
480
    </div>
481
    
482
    <div id="api-info-overlay" class="overlay-content overlay-info hidden">
483
        <div class="description">
484
            <p>{% blocktrans with EXTERNAL_CLIENT_URL as EXTERNAL_CLIENT_URL %}Use the following API key along with the <a
485
                href="{{ EXTERNAL_CLIENT_URL }}">./kamaki</a> client to manage
486
            your cloud resources from outside this page.{% endblocktrans %}</p>
487
        </div>
488
        <div class="copy-content">
489
            <p></p>
490
        </div>
491
        <div class="description subinfo">
492
            <p>
493
            {% trans "The API key provides full access to your <em>~okeanos</em> account, so always keep it private." %}
494
            </p>
495
        </div>
496
    </div>
497

    
498
    <div class="api_overlay_template">
499
        <div class="api_overlay_content">
500
            <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>
501
        </div>
502
    </div>
503

    
504
    <div class="modal" id="notification-box" class="notification-box">
505
        <h3 class="popup-header">
506
            <span class="header-box"></span>
507
        </h3>
508
        <div class="popup-body">
509
            <div class="popup-body-inner">
510
                <div class="machine-now-building"></div>
511
                <div class="popup-separator"></div>
512
                <div class="password-container">
513
                    <div class="password"></div>
514
                </div>
515
                <div class="sub-text"></div>
516
            </div>
517
        </div>
518
    </div>
519
    
520
    <div id="loading-view" class="hidden">
521
        <img src="{{ SYNNEFO_IMAGES_URL }}icons/indicators/small/progress.gif" />
522
        <div class="header">Loading <span>~okeanos</span></div>
523
        <div class="info hidden"></div>
524
    </div>
525
    <div id="user_public_keys" class="overlay-content overlay-content hidden">
526
        {% include "userdata/public_keys_view.html" %}
527
    </div>
528
    {% include "footer.html" %}
529

    
530
    <script>
531
        $(document).ready(function() {
532
            $(".css-panes").hide();
533

534
            // TODO: match <= 1.9.1
535
            if ($.browser.mozilla && $.browser.version.substr(0,3) == "1.9") {
536
                synnefo.config.overlay_speed = 0;
537
                $.fx.off = true;
538
            }
539
            
540
            // synnefo js config
541
            synnefo.VERSION = "{{ synnefo_version }}";
542

543
            synnefo.config.update_interval = {{ update_interval }};
544
            synnefo.config.delay_on_blur = {{ delay_on_blur }};
545
            synnefo.config.blur_delay = {{ blur_delay }};
546
            synnefo.config.update_hidden_views = {{ update_hidden_views }};
547
            synnefo.config.handle_window_exceptions = {{ handle_window_exceptions }};
548
            synnefo.config.ajax_timeout = {{ timeout }};
549
            synnefo.config.skip_timeouts = {{ skip_timeouts }};
550
            synnefo.config.invitations_url = "{% url invitations %}";
551
            synnefo.config.machines_icons_url = '{{ SYNNEFO_IMAGES_URL }}icons/machines/';
552
            synnefo.config.vm_name_template = {{ vm_name_template|safe }};
553

554
            // TODO: make it dynamic
555
            synnefo.config.api_url = '/api/v1.1';
556
            synnefo.config.logout_url = '{{ logout_redirect }}';
557
            synnefo.config.userdata_keys_url = '{% url keys_collection %}';
558
            synnefo.config.userdata_keys_limit = {{ userdata_keys_limit }};
559

560
            synnefo.config.media_url = '{{ UI_MEDIA_URL }}';
561
            synnefo.config.js_url = '{{ SYNNEFO_JS_URL }}';
562
            synnefo.config.images_url = '{{ SYNNEFO_IMAGES_URL }}';
563
            synnefo.config.indicators_icons_url = '{{ SYNNEFO_IMAGES_URL }}icons/indicators/';
564
            synnefo.config.machines_icons_url = '{{ SYNNEFO_IMAGES_URL }}icons/machines/';
565
            synnefo.config.support_ssh_os_list = {{ support_ssh_os_list|safe }};
566
            synnefo.config.os_created_users = {{ os_created_users|safe }};
567

568
            synnefo.ui.init();
569

570
            synnefo.ui.main.bind("initial", function(){
571
            })
572

573
        })
574
    </script>
575
</body>
576
</html>