Revision f29f1023 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/application.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/application.js | ||
---|---|---|
1 |
// we have initialized and Ember Application with namespace UI |
|
1 | 2 |
window.UI = Ember.Application.create(); |
2 | 3 |
|
4 |
/* |
|
5 |
* stuff that will be used globally in UI |
|
6 |
* This is weird as non-common models are called in router.js |
|
7 |
* Example: |
|
8 |
* UI.VmsRoute = Ember.Route.extend({ |
|
9 |
* model: function() { |
|
10 |
* return vms; |
|
11 |
* } |
|
12 |
* }); |
|
13 |
*/ |
|
3 | 14 |
UI.ApplicationController = Ember.Controller.extend({ |
4 | 15 |
logoUrl: 'images/synnefo-logo.png', |
5 |
}); |
|
16 |
iconLink:[ { |
|
17 |
id: 1, |
|
18 |
title: 'Machines', |
|
19 |
path: 'vms', |
|
20 |
iconCls: 'snf-pc-outline', |
|
21 |
}, { |
|
22 |
id: 2, |
|
23 |
title: 'Networks', |
|
24 |
path: 'networks', |
|
25 |
iconCls: 'snf-network-outline', |
|
26 |
}, { |
|
27 |
id: 3, |
|
28 |
title: 'Disks', |
|
29 |
path: 'disks', |
|
30 |
iconCls: 'snf-volume-outline', |
|
31 |
}, { |
|
32 |
id: 4, |
|
33 |
title: 'Snapshots', |
|
34 |
path: 'snapshots', |
|
35 |
iconCls: 'snf-snapshot-outline', |
|
36 |
}, { |
|
37 |
id: 5, |
|
38 |
title: 'Images', |
|
39 |
path: 'images', |
|
40 |
iconCls: 'snf-image-outline', |
|
41 |
}], |
|
42 |
}); |
|
43 |
|
Also available in: Unified diff