Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (555 Bytes)

1
App.Tag = DS.Model.extend({
2

    
3
    name     : DS.attr(),
4
    color    : DS.attr(),
5
    vms      : DS.hasMany('vm', { async:true }),
6

    
7
});
8

    
9

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