<div class="status-wrapper">
<?
foreach($this->content as $title => $value) {
if ($title == 'Active Site') {
echo $this->partial(
'indicator.phtml',
array(
'label' => $title,
'status' => '',
'type' => 'info',
'class' => 'good',
'message' => $this->escape($value['site']->getConfig()->getTitle())
. ' (' . $this->escape($value['site']->getStream()->getName()) . ')'
. '<br>'. $this->escape($value['details']),
'htmlMessage' => true,
)
);
} else if ($title == 'All Sites') {
$message = '';
foreach ($value as $siteTitle => $siteBranches) {
$message .= $this->escape($siteTitle) . ' - '
. $this->escape(implode($siteBranches, ', '))
. '<br>';
}
echo $this->partial(
'indicator.phtml',
array(
'label' => $title,
'status' => '',
'type' => 'info',
'class' => 'good',
'message' => $message,
'htmlMessage' => true,
)
);
} else if (is_array($value)) {
if (array_key_exists('details', $value)) {
echo $this->partial('indicator.phtml',
array(
'label' => $title,
'status' => '',
'message' => $value['details'],
'class' => $value['displayClass']
)
);
} else { // library list
foreach($value as $label) {
echo $this->partial('indicator.phtml',
array(
'label' => $label,
'type' => 'library'
)
);
}
}
} else {
echo $this->partial('indicator.phtml',
array(
'label' => $title,
'status' => '',
'class' => 'good',
'message' => $value,
)
);
}
}
?>
</div>
# |
Change |
User |
Description |
Committed |
|
#1
|
16170 |
perforce_software |
Move Chronicle files to follow new path scheme for branching. |
|
|
//guest/perforce_software/chronicle/application/system/views/scripts/general-info.phtml |
#1
|
8972 |
Matt Attaway |
Initial add of the Chronicle source code |
|
|