Statistics
| Branch: | Tag: | Revision:

root / ui / templates / home.html @ 12a0db5d

History | View | Annotate | Download (24.1 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}}ZeroClipboard.js"></script>
32

    
33

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

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

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

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

    
68
    <!-- the following views require refactor -->
69
    <script src="{{ SYNNEFO_JS_URL }}invitations.js"></script>
70
    <script src="{{ SYNNEFO_JS_URL }}synnefo.js"></script>
71
    
72
    <script>
73
        // empty object for console to avoid errors in browsers that don't support it
74
        if (!window.console) {window.console = {}; window.console.log = window.console.info = window.console.debug =
75
            window.console.error = function() {}};
76
        
77
        // initialize zero clipboard
78
        ZeroClipboard.setMoviePath( '{{ SYNNEFO_JS_LIB_URL}}ZeroClipboard.swf' );
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="logout last"><a class="action" href="#">{% trans "logout" %}</a></li>
193
                    </ul>
194
                </div>
195
                <div class="langmenu">
196
                    <a class="current_lang">en</a>
197
                    {% comment %}
198
                {% get_available_languages as LANGUAGES %}
199
                {% for lang in LANGUAGES %}
200
                <a {% if  == lang.0 %}
201
                    class="current_lang" {% else %}  href="/lang/?l={{lang.0}}" {% endif %}>{{lang.0}}</a>
202

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

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

    
241
                    <div class="confirm_multiple clearfix" id="multiple_actions_container">
242
                        <div class="confirm_multiple_actions confirm_multiple_cont clearfix">
243
                            <p>{% trans "Your actions will affect" %} <span class="actionLen">XX</span> {% trans "machines" %}</p>
244
                            <button class="yes">{% trans "Confirm All" %}</button>
245
                            <button class="no">{% trans "Cancel All" %}</button>
246
                        </div>
247
                        <div class="confirm_reboot_required confirm_multiple_cont clearfix">
248
                            <p><span class="actionLen"></span> {% trans "machines needs to be rebooted for changes to apply" %}</p>
249
                            <button class="yes">{% trans "Reboot All" %}</button>
250
                            <button class="no">{% trans "Cancel All" %}</button>
251
                            <div class="reboot-machines-list"></div>
252
                        </div>
253
                    </div>
254

    
255
                </div>
256
            </div>
257
        </div>
258
    </div>
259

    
260
    <!-- activate tabs with JavaScript -->
261
    <script>
262

263
        //load opera css fixes
264
        if ($.browser.opera) {
265
            $("<link/>", {
266
               rel: "stylesheet",
267
               type: "text/css",
268
               href: "{{ SYNNEFO_CSS_URL }}opera.css"
269
            }).appendTo("head");
270
        }
271

272
        $(document).ready(function(){
273

274
            {% if current_lang == "el" and not DEBUG %}
275
                window.location = "/lang/?l=en";
276
            {% endif %}
277

278
            // user menu interaction
279
            var resetUserMenu = function() {
280
                $(this).removeClass("hovered");
281
                $(this).removeClass("active");
282
            }
283

284
            $(".usermenu").live("click", function(){
285
                $(this).addClass("active");
286
            });
287
            $(".usermenu").bind('mouseleave', resetUserMenu);
288
            $(".usermenu").live("mouseover", function(){
289
                $(this).addClass("hovered");
290
            });
291

292
            $(".usermenu li").mouseenter(function(){$(this).addClass("hovered")})
293
            $(".usermenu li").mouseleave(function(){$(this).removeClass("hovered")});
294

295
            // bind menu actions
296
            $(".usermenu .logout").click(function() {
297
                synnefo.ui.logout();
298
            });
299

300
            $(".usermenu .api").click(function(){
301
                synnefo.ui.main.api_info_view.show();
302
            });
303

304
        });
305
        
306
        function positionBottomMessages() {
307
            var el = $("#multiple_actions_container");
308
        }
309

310
        $(window).bind("load", function() { 
311
               var footerHeight = 0;
312
               var footerTop = 0;
313
               var $footer = $("#footer-container");
314

315
               positionFooter();
316
               function positionFooter() {
317
                   footerHeight = 80;
318
                   footerTop = ($(window).scrollTop()+$(window).height()-footerHeight)+"px";
319
                   if (($(document.body).height()+footerHeight) < $(window).height()) {
320

321
                       $footer.css({
322
                            position: "absolute"
323
                       }).css({
324
                            top: footerTop
325
                       })
326
                    } else {
327
                    
328
                       if ($footer.css("position") == "static") {
329
                           if ($(document.body).height() < $(window).height()) {    
330
                               $footer.css({
331
                                    position: "absolute"
332
                               }).css({
333
                                    top: footerTop
334
                                })
335
                            }
336
                        } else {
337

338
                           $footer.css({
339
                               position: "static"
340
                           })
341
                       }
342
                   }
343

344
                   }
345
               window.positionFooter = _.throttle(positionFooter, 100);
346
               $(window).scroll(positionFooter).resize(positionFooter)
347
        });
348
    </script>
349

    
350
    <!-- base notification for error/success reporting -->
351
    <a id="notification" rel="#error-success" href="#"></a>
352
    <a id="msgbox" rel="#notification-box" href="#"></a>
353
    <a id="feedbackbox" rel="#feedback-form" href="#"></a>
354

    
355
    <div class="overlay" id="generic-overlay-tpl">
356
        <div class="overlay-inner">
357
            <h3 class="header clearfix">
358
                <span class="subtitle"></span>
359
                <span class="title"></span>
360
                <span class="closeme">close</span></h3>
361
            <div class="container">
362
                <div class="content">
363
                </div>
364
            </div>
365
            <div class="footer"></div>
366
        </div>
367
    </div>
368

    
369
    <div id="error-overlay-content" class="hidden">
370
        <div class="error-nav hidden clearfix">
371
            <span class="indicator"><span class="num">1</span> <span
372
                    class="ind-msg">new error occured</span></span>
373
            <span class="show-next nav-btn">{% trans "next" %}</span>
374
            <span class="show-prev nav-btn">{% trans "previous" %}</span>
375
        </div>
376
        <div class="message"><p></p></div>
377
        <div class="error-details">
378
            <span class="key">{% trans "Module" %}</span>
379
            <span class="value error-module"></span>
380

    
381
            <span class="key">{% trans "Code" %}</span>
382
            <span class="value error-code"></span>
383

    
384
            <span class="key">{% trans "Type" %}</span>
385
            <span class="value error-type"></span>
386

    
387
            <span class="key details">{% trans "Details" %}</span>
388
            <div class="value error-more-details"><p></p></div>
389
        </div>
390
        
391
        <!--<div class="navigation">-->
392
            <!--<span class="next-error">{% trans "next error" %}</span>-->
393
            <!--<span class="previous-error">{% trans "previous error" %}</span>-->
394
        <!--</div>-->
395
        
396
        <!--<div class="date">-->
397
            <!--<span class="error-date"></span>-->
398
        <!--</div>-->
399

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

    
453
                    <input type="checkbox" name="submit-submit-data" class='submit-data' />
454
                    <input type="submit" value="{% trans "submit " %}" class="submit" />
455
                    <textarea name="feedback-data" class="data-text"></textarea>
456
                </form>
457
            </div>
458

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

    
487
    <div class="api_overlay_template">
488
        <div class="api_overlay_content">
489
            <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>
490
        </div>
491
    </div>
492

    
493
    <div class="modal" id="notification-box" class="notification-box">
494
        <h3 class="popup-header">
495
            <span class="header-box"></span>
496
        </h3>
497
        <div class="popup-body">
498
            <div class="popup-body-inner">
499
                <div class="machine-now-building"></div>
500
                <div class="popup-separator"></div>
501
                <div class="password-container">
502
                    <div class="password"></div>
503
                </div>
504
                <div class="sub-text"></div>
505
            </div>
506
        </div>
507
    </div>
508
    
509
    <div id="loading-view" class="hidden">
510
        <img src="{{ SYNNEFO_IMAGES_URL }}icons/indicators/small/progress.gif" />
511
        <div class="header">Loading <span>~okeanos</span></div>
512
        <div class="info hidden"></div>
513
    </div>
514
    {% include "footer.html" %}
515

    
516
    <script>
517
        $(document).ready(function() {
518
            $(".css-panes").hide();
519

520
            // TODO: match <= 1.9.1
521
            if ($.browser.mozilla && $.browser.version.substr(0,3) == "1.9") {
522
                synnefo.config.overlay_speed = 0;
523
                $.fx.off = true;
524
            }
525
            
526
            // synnefo js config
527
            synnefo.config.update_interval = {{ update_interval }};
528
            synnefo.config.delay_on_blur = {{ delay_on_blur }};
529
            synnefo.config.blur_delay = {{ blur_delay }};
530
            synnefo.config.update_hidden_views = {{ update_hidden_views }};
531
            synnefo.config.handle_window_exceptions = {{ handle_window_exceptions }};
532
            synnefo.config.ajax_timeout = {{ timeout }};
533
            synnefo.config.skip_timeouts = {{ skip_timeouts }};
534
            synnefo.config.invitations_url = "{% url invitations %}";
535
            synnefo.VERSION = "{{ synnefo_version }}";
536

537
            // TODO: make it dynamic
538
            synnefo.config.api_url = '/api/v1.1';
539
            synnefo.config.logout_url = '{{ logout_redirect }}';
540

541
            synnefo.config.media_url = '{{ UI_MEDIA_URL }}';
542
            synnefo.config.js_url = '{{ SYNNEFO_JS_URL }}';
543
            synnefo.config.indicators_icons_url = '{{ SYNNEFO_IMAGES_URL }}icons/indicators/';
544
            synnefo.config.machines_icons_url = '{{ SYNNEFO_IMAGES_URL }}icons/machines/';
545

546
            synnefo.ui.init();
547

548
            synnefo.ui.main.bind("initial", function(){
549
            })
550

551
        })
552
    </script>
553
</body>
554
</html>