Revision 33282d93

b/ui/static/main.css
634 634
div.machine div.actions a {
635 635
    color: transparent;
636 636
    margin: 0 0 5px 8px;
637
    display: block;
638
}
639

  
640
div.machine div.actions a.action-shutdown {
641
    margin-bottom: 18px;
637 642
}
638 643

  
639
div.machine div.actions a.action-destroy {
640
    margin-top: 18px;
644
div.machine div.actions a.destroy-padding {
645
    margin-top: 46px;
641 646
}
642 647

  
643 648
div.actions a.enabled:hover{
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