Project

General

Profile

Download (1.08 KB) Statistics
| Branch: | Revision:
1
dojo.provide('stabile.statuscodes');
2

    
3
dojo.ready(function(){
4

    
5
var statuscodes = {
6

    
7
    codes:{
8
        active: 'green',
9
        booting: 'orange',
10
        down: 'red',
11
        inactive: 'grey',
12
        nostate: 'grey',
13
        moving: 'yellow',
14
        joining: 'orange',
15
        unjoin: 'orange',
16
        unjoining: 'orange',
17
        nat: 'orange',
18
        running: 'green',
19
        sleeping: 'orange',
20
        asleep: 'orange',
21
        shutdown: 'red',
22
        shutoff: 'red',
23
        starting: 'orange',
24
        shuttingdown: 'orange',
25
        destroying: 'orange',
26
        unused: 'grey',
27
        used: 'blue',
28
        up: 'green',
29
        creating: 'orange',
30
        cloning: 'orange',
31
        snapshotting: 'orange',
32
        unsnapping: 'orange',
33
        mastering: 'orange',
34
        unmastering: 'orange',
35
        rebasing: 'orange',
36
        backingup: 'orange',
37
        restoring: 'orange',
38
        copying: 'orange',
39
        enabled: 'blue',
40
        disabled: 'grey'
41
    },
42

    
43
    getColor: function(code){
44
        return this.codes[code] || 'black';
45
    }
46
};
47
window.statuscodes = statuscodes;
48
});
(17-17/23)