Commit be466a09 authored by Leigh Stoller's avatar Leigh Stoller

Add nolocalimages flag to per cluster flags display.

parent 7cc5c5e1
<?php
#
# Copyright (c) 2000-2018 University of Utah and the Flux Group.
# Copyright (c) 2000-2019 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -51,6 +51,7 @@ function Do_AggregateStatus()
"datasets" => intval($aggregate->has_datasets()),
"reservations" => intval($aggregate->reservations()),
"monitor" => $aggregate->nomonitor() ? 0 : 1,
"nolocalimages"=> $aggregate->nolocalimages() ? 1 : 0,
"status" => $aggregate->status(),
"last_contact" => $aggregate->last_success(),
"last_error" => $aggregate->last_error(),
......
<?php
#
# Copyright (c) 2006-2018 University of Utah and the Flux Group.
# Copyright (c) 2006-2019 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
......@@ -89,6 +89,7 @@ class Aggregate
function reservations() { return $this->field('reservations'); }
function isfederate() { return $this->field('isfederate'); }
function nomonitor() { return $this->field('nomonitor'); }
function nolocalimages(){ return $this->field('nolocalimages'); }
function portals() { return $this->field('portals'); }
# accessors for the status info.
......
......@@ -39,6 +39,7 @@ $(function ()
" <tr><td>R</td><td>Reservations</td></tr>" +
" <tr><td>d</td><td>Datasets</td></tr>" +
" <tr><td>M</td><td>Monitored</td></tr>" +
" <tr><td>I</td><td>No Local Images</td></tr>" +
"</table>";
function RenderPage(status)
......@@ -46,11 +47,12 @@ $(function ()
_.each(status, function(value, key) {
// Generate a "flags" string.
var flags = "";
flags += (value.disabled ? "D" : "-");
flags += (value.adminonly ? "A" : "-");
flags += (value.reservations ? "R" : "-");
flags += (value.datasets ? "d" : "-");
flags += (value.monitor ? "M" : "-");
flags += (value.disabled ? "D" : "-");
flags += (value.adminonly ? "A" : "-");
flags += (value.reservations ? "R" : "-");
flags += (value.datasets ? "d" : "-");
flags += (value.monitor ? "M" : "-");
flags += (value.nolocalimages ? "I" : "-");
value.flags = flags;
// Ratio
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment