Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / javascripts / ember / models / tag.js @ 1f03ad61

History | View | Annotate | Download (553 Bytes)

1
App.Tag = DS.Model.extend({
2
    name     : DS.attr(),
3
    color    : DS.attr(),
4
    vms      : DS.hasMany('vm', { async:true }),
5
});
6

    
7

    
8
App.Tag.FIXTURES = [
9
    {
10
        id: 1,
11
        name: 'hacking',
12
        color: '#1E96FF',
13
        vms: [2,3,42],
14
    },
15
    {
16
        id: 2,
17
        name: 'movies',
18
        color: '#FFCB44',
19
        vms: [2,4,42],
20
    },
21
    {
22
        id: 3,
23
        name: 'dev',
24
        color: '#DF2F74',
25
        vms: [2,42],
26
    },
27
    {
28
        id: 4,
29
        name: 'var',
30
        color: '#F76720',
31
        vms: [6,2],
32
    },
33
];