Revision a4a27935 snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/helpers/helpers.js
b/snf-cyclades-app/synnefo/ui/new_ui/ui/javascripts/ember/helpers/helpers.js | ||
---|---|---|
1 |
var statusText ={ |
|
2 |
'off' : 'STOPPED', |
|
3 |
'error' : 'ERROR', |
|
4 |
'building' : 'BUILDING', |
|
5 |
'running' : 'RUNNING', |
|
6 |
'rebooting': 'REBOOTING', |
|
7 |
'starting' : 'STARTING', |
|
8 |
'shutting' : 'SHUTTING DOWN', |
|
9 |
}; |
|
10 |
|
|
11 |
|
|
12 |
|
|
13 | 1 |
Ember.Handlebars.helper('status-to-text', function(value) { |
14 | 2 |
return statusText[value]; |
15 | 3 |
}, 'status'); |
Also available in: Unified diff