Statistics
| Branch: | Tag: | Revision:

root / ui / templates / home.html @ 11b22637

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}}jquery.zclip.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
        //populate available image icons array
78
        var os_icons = {{image_icons|safe}};
79
        
80
        // timeout value from settings.py
81
        var TIMEOUT = {{ timeout }};
82
        var TIMEOUTS_OCCURED = 0;
83
        var SKIP_TIMEOUTS = 1;
84
        var UPDATE_INTERVAL = {{ update_interval }};
85
        var LOGOUT_REDIRECT = '{{ logout_redirect }}';
86
        var INVITATIONS_URL = "{% url invitations %}";
87
        var INVITATIONS_TITLE = "{% trans "Invite people" %}";
88
        var APP_DEBUG = {% if DEBUG %}true{% else %}false{% endif %};
89
        var FEEDBACK_URL = "{% url feedback %}";
90
        var FEEDBACK_TITLE = "{% trans "Send feedback" %}";
91
        var API_OVERLAY_TITLE = "{% trans "API access" %}";
92
        var API_OVERLAY_SUBCONTENT = "{% trans "The API key provides full access to your <em>~okeanos</em> account, so always keep it private." %}";
93

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

113

114

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

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

153
        var SUGGESTED_FLAVORS = {{ suggested_flavors|safe }};
154
        var SUGGESTED_ROLES = {{ suggested_roles|safe }}
155

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

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

    
175
    </script>
176
</head>
177

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

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

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

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

    
262
                </div>
263
            </div>
264
        </div>
265
    </div>
266

    
267
    <!-- activate tabs with JavaScript -->
268
    <script>
269

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

279
        $(document).ready(function(){
280

281
            {% if current_lang == "el" and not DEBUG %}
282
                window.location = "/lang/?l=en";
283
            {% endif %}
284

285
            // user menu interaction
286
            var resetUserMenu = function() {
287
                $(this).removeClass("hovered");
288
                $(this).removeClass("active");
289
            }
290

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

299
            $(".usermenu li").mouseenter(function(){$(this).addClass("hovered")})
300
            $(".usermenu li").mouseleave(function(){$(this).removeClass("hovered")});
301

302
            // bind menu actions
303
            $(".usermenu .logout").click(function() {
304
                synnefo.ui.logout();
305
            });
306

307
            $(".usermenu .api").click(function(){
308
                synnefo.ui.main.api_info_view.show();
309
            });
310

311
        });
312
        
313
        function positionBottomMessages() {
314
            var el = $("#multiple_actions_container");
315
        }
316

317
        $(window).bind("load", function() { 
318
               var footerHeight = 0;
319
               var footerTop = 0;
320
               var $footer = $("#footer-container");
321

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

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

345
                           $footer.css({
346
                               position: "static"
347
                           })
348
                       }
349
                   }
350

351
                   }
352
               window.positionFooter = _.throttle(positionFooter, 100);
353
               $(window).scroll(positionFooter).resize(positionFooter)
354
        });
355
    </script>
356

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

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

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

    
388
            <span class="key">{% trans "Code" %}</span>
389
            <span class="value error-code"></span>
390

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

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

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

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

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

    
494
    <div class="api_overlay_template">
495
        <div class="api_overlay_content">
496
            <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>
497
        </div>
498
    </div>
499

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

    
523
    <script>
524
        $(document).ready(function() {
525
            $(".css-panes").hide();
526

527
            // TODO: match <= 1.9.1
528
            if ($.browser.mozilla && $.browser.version.substr(0,3) == "1.9") {
529
                synnefo.config.overlay_speed = 0;
530
                $.fx.off = true;
531
            }
532
            
533
            // synnefo js config
534
            synnefo.VERSION = "{{ synnefo_version }}";
535

536
            synnefo.config.update_interval = {{ update_interval }};
537
            synnefo.config.delay_on_blur = {{ delay_on_blur }};
538
            synnefo.config.blur_delay = {{ blur_delay }};
539
            synnefo.config.update_hidden_views = {{ update_hidden_views }};
540
            synnefo.config.handle_window_exceptions = {{ handle_window_exceptions }};
541
            synnefo.config.ajax_timeout = {{ timeout }};
542
            synnefo.config.skip_timeouts = {{ skip_timeouts }};
543
            synnefo.config.invitations_url = "{% url invitations %}";
544
            synnefo.config.machines_icons_url = '{{ SYNNEFO_IMAGES_URL }}icons/machines/';
545
            synnefo.config.vm_name_template = {{ vm_name_template|safe }};
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>