Commit d26400dd authored by Leigh B Stoller's avatar Leigh B Stoller

Show stored max extension flag on the status page.

parent ef31d896
......@@ -53,6 +53,7 @@ function Do_AggregateStatus()
"monitor" => $aggregate->nomonitor() ? 0 : 1,
"nolocalimages"=> $aggregate->nolocalimages() ? 1 : 0,
"prestageimages"=> $aggregate->prestageimages() ? 1 : 0,
"precalcmaxext"=> $aggregate->precalcmaxext() ? 1 : 0,
"status" => $aggregate->status(),
"last_contact" => $aggregate->last_success(),
"last_error" => $aggregate->last_error(),
......
......@@ -90,6 +90,7 @@ class Aggregate
function nomonitor() { return $this->field('nomonitor'); }
function nolocalimages(){ return $this->field('nolocalimages'); }
function prestageimages(){ return $this->field('prestageimages'); }
function precalcmaxext(){ return $this->field('precalcmaxext'); }
function portals() { return $this->field('portals'); }
function canuse_feature(){ return $this->field('canuse_feature'); }
......
......@@ -41,6 +41,7 @@ $(function ()
" <tr><td>M</td><td>Monitored</td></tr>" +
" <tr><td>I</td><td>No Local Images</td></tr>" +
" <tr><td>P</td><td>Prestage Images</td></tr>" +
" <tr><td>E</td><td>Saved Max Extensions</td></tr>" +
"</table>";
function RenderPage(status)
......@@ -55,6 +56,7 @@ $(function ()
flags += (value.monitor ? "M" : "-");
flags += (value.nolocalimages ? "I" : "-");
flags += (value.prestageimages ? "P" : "-");
flags += (value.precalcmaxext ? "E" : "-");
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