UI tweaks

This commit is contained in:
Ian Gulliver
2016-05-11 20:36:52 +00:00
parent 20a1806998
commit 164b94a783
2 changed files with 5 additions and 3 deletions

View File

@@ -87,6 +87,10 @@ hostname, lastReport, uptime, timestamp, volumeID, reboot, command, status {
text-align: right;
}
status {
min-width: 20em;
}
volumeID {
cursor: pointer;
}

View File

@@ -62,8 +62,6 @@ ImageController.prototype.addImageType_ = function(name) {
this.createNode_(headers, 'header', 'Current volume ID');
this.createNode_(headers, 'header', 'Next image');
this.createNode_(headers, 'header', 'Next volume ID');
this.createNode_(headers, 'header'); // Reboot
this.createNode_(headers, 'header'); // Reboot into
this.createNode_(headers, 'header', 'Status');
type.version_section = this.createNode_(this.overlay_, 'versions');
@@ -154,9 +152,9 @@ ImageController.prototype.addInstance_ = function(type, hostname) {
instance.volume_id = this.createNode_(instance.section, 'volumeID');
instance.next_timestamp = this.createNode_(instance.section, 'timestamp');
instance.next_volume_id = this.createNode_(instance.section, 'volumeID');
instance.status = this.createNode_(instance.section, 'status');
instance.reboot = this.createNode_(instance.section, 'reboot', 'Reboot');
instance.reboot_into = this.createNode_(instance.section, 'reboot', 'Reboot into');
instance.status = this.createNode_(instance.section, 'status');
instance.volume_id.addEventListener(
'click', (e) => this.onVolumeIDClick_(e.target.innerText));