Revision 33282d93 ui/templates/standard.html
b/ui/templates/standard.html | ||
---|---|---|
226 | 226 |
console.info(existing.find("a.name span.name").text() + ' from ' |
227 | 227 |
+ existing.find(".status").text() + ' to ' + STATUS_MESSAGES[server.status]); |
228 | 228 |
} catch(err) {} |
229 |
|
|
229 |
//show reboot and shutdown actions |
|
230 |
if (server.status == 'ACTIVE' || server.status == 'REBOOT') { |
|
231 |
$('div.#' + server.id + ' a.action-reboot').show(); |
|
232 |
$('div.#' + server.id + ' a.action-shutdown').show(); |
|
233 |
$('div.#' + server.id + ' a.action-destroy').removeClass('destroy-padding'); |
|
234 |
} |
|
230 | 235 |
if (['BUILD','ACTIVE','REBOOT'].indexOf(server.status) >= 0 && |
231 | 236 |
[STATUS_MESSAGES['STOPPED'], STATUS_MESSAGES['ERROR'], |
232 | 237 |
'Starting'].indexOf(existing.find(".status").text()) >= 0) { |
... | ... | |
293 | 298 |
if (server.status == 'BUILD') { |
294 | 299 |
$('div.#' + server.id + ' a.action-reboot').hide(); |
295 | 300 |
$('div.#' + server.id + ' a.action-shutdown').hide(); |
296 |
$('div.#' + server.id + ' a.action-destroy').attr('style', 'margin-top:46px');
|
|
301 |
$('div.#' + server.id + ' a.action-destroy').addClass('destroy-padding');
|
|
297 | 302 |
} |
298 | 303 |
} |
299 | 304 |
}); |
Also available in: Unified diff