mirror of https://github.com/MISP/MISP
chg: [dashboard widget UI] made some changes to accomodate the new widgets
parent
c1ad695a9f
commit
c702f5366d
|
@ -27,9 +27,14 @@
|
|||
$change = '<span class="red bold"> (-' . $change . ')</span>';
|
||||
}
|
||||
}
|
||||
if (!empty($element['html_title'])) {
|
||||
$title = $element['html_title'];
|
||||
} else {
|
||||
$title = h($element['title']);
|
||||
}
|
||||
echo sprintf(
|
||||
'<div><span class="bold">%s</span>: <span class="%s">%s</span>%s%s</div>',
|
||||
h($element['title']),
|
||||
$title,
|
||||
empty($element['class']) ? 'blue' : h($element['class']),
|
||||
!isset($element['value']) ? '' : $element['value'],
|
||||
empty($element['html']) ? '' : $element['html'],
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
), true);
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="world-map-<?= $randomNumber ?>" style="width: 600px; height: 400px"></div>
|
||||
<script>
|
||||
(function() { // variables and functions have their own scope (no override)
|
||||
|
|
Loading…
Reference in New Issue