Statistics
| Branch: | Tag: | Revision:

root / ui / templates / home.html @ 101e6604

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    
526
    <script>
527
        $(document).ready(function() {
528
            $(".css-panes").hide();
529

530
            // TODO: match <= 1.9.1
531
            if ($.browser.mozilla && $.browser.version.substr(0,3) == "1.9") {
532
                synnefo.config.overlay_speed = 0;
533
                $.fx.off = true;
534
            }
535
            
536
            // synnefo js config
537
            synnefo.config.update_interval = {{ update_interval }};
538
            synnefo.config.delay_on_blur = {{ delay_on_blur }};
539
            synnefo.config.blur_delay = {{ blur_delay }};
540
            synnefo.config.update_hidden_views = {{ update_hidden_views }};
541
            synnefo.config.handle_window_exceptions = {{ handle_window_exceptions }};
542
            synnefo.config.ajax_timeout = {{ timeout }};
543
            synnefo.config.skip_timeouts = {{ skip_timeouts }};
544
            synnefo.config.invitations_url = "{% url invitations %}";
545
            synnefo.VERSION = "{{ synnefo_version }}";
546

547
            // TODO: make it dynamic
548
            synnefo.config.api_url = '/api/v1.1';
549
            synnefo.config.logout_url = '{{ logout_redirect }}';
550

551
            synnefo.config.media_url = '{{ UI_MEDIA_URL }}';
552
            synnefo.config.js_url = '{{ SYNNEFO_JS_URL }}';
553
            synnefo.config.indicators_icons_url = '{{ SYNNEFO_IMAGES_URL }}icons/indicators/';
554
            synnefo.config.machines_icons_url = '{{ SYNNEFO_IMAGES_URL }}icons/machines/';
555

556
            synnefo.ui.init();
557

558
            synnefo.ui.main.bind("initial", function(){
559
            })
560

561
        })
562
    </script>
563
</body>
564
</html>