Merge remote-tracking branch 'origin/master' into feature/add-to-dashboard-4537

This commit is contained in:
Marius Hein 2014-11-19 11:48:22 +01:00
commit dbc1b1ce3e
5 changed files with 29 additions and 20 deletions

View File

@ -167,4 +167,4 @@
.icon-chart-area:before { content: '\e870'; } /* '' */ .icon-chart-area:before { content: '\e870'; } /* '' */
.icon-chart-bar:before { content: '\e871'; } /* '' */ .icon-chart-bar:before { content: '\e871'; } /* '' */
.icon-beaker:before { content: '\e872'; } /* '' */ .icon-beaker:before { content: '\e872'; } /* '' */
.icon-magic:before { content: '\e873'; } /* '' */ .icon-magic:before { content: '\e873'; } /* '' */

View File

@ -11,6 +11,8 @@ use Icinga\Web\LessCompiler;
class StyleSheet class StyleSheet
{ {
protected static $lessFiles = array( protected static $lessFiles = array(
'../application/fonts/fontello-ifont/css/ifont-embedded.css',
'css/vendor/tipsy.css',
'css/icinga/defaults.less', 'css/icinga/defaults.less',
'css/icinga/layout-colors.less', 'css/icinga/layout-colors.less',
'css/icinga/layout-structure.less', 'css/icinga/layout-structure.less',
@ -24,9 +26,7 @@ class StyleSheet
'css/icinga/pagination.less', 'css/icinga/pagination.less',
'css/icinga/monitoring-colors.less', 'css/icinga/monitoring-colors.less',
'css/icinga/selection-toolbar.less', 'css/icinga/selection-toolbar.less',
'css/icinga/login.less', 'css/icinga/login.less'
'../application/fonts/fontello-ifont/css/ifont-embedded.css',
'css/vendor/tipsy.css'
); );
public static function compileForPdf() public static function compileForPdf()

View File

@ -64,7 +64,7 @@ class Monitoring_AlertsummaryController extends Controller
*/ */
public function indexAction() public function indexAction()
{ {
$this->addTitleTab('alertsummary'); $this->addTitleTab('alertsummary', t('Alert Summary'));
$this->view->intervalBox = $this->createIntervalBox(); $this->view->intervalBox = $this->createIntervalBox();
$this->view->recentAlerts = $this->createRecentAlerts(); $this->view->recentAlerts = $this->createRecentAlerts();
$this->view->interval = $this->getInterval(); $this->view->interval = $this->getInterval();
@ -433,7 +433,7 @@ class Monitoring_AlertsummaryController extends Controller
$gridChart->drawBars( $gridChart->drawBars(
array( array(
'label' => $this->translate('Notifications'), 'label' => $this->translate('Notifications'),
'color' => 'blue', 'color' => '#049baf',
'data' => $notifications, 'data' => $notifications,
'showPoints' => true 'showPoints' => true
) )
@ -442,7 +442,7 @@ class Monitoring_AlertsummaryController extends Controller
$gridChart->drawLines( $gridChart->drawLines(
array( array(
'label' => $this->translate('Avg (min)'), 'label' => $this->translate('Avg (min)'),
'color' => 'orange', 'color' => '#ffaa44',
'data' => $dAvg, 'data' => $dAvg,
'showPoints' => true 'showPoints' => true
) )
@ -451,7 +451,7 @@ class Monitoring_AlertsummaryController extends Controller
$gridChart->drawLines( $gridChart->drawLines(
array( array(
'label' => $this->translate('Max (min)'), 'label' => $this->translate('Max (min)'),
'color' => 'red', 'color' => '#ff5566',
'data' => $dMax, 'data' => $dMax,
'showPoints' => true 'showPoints' => true
) )
@ -478,7 +478,7 @@ class Monitoring_AlertsummaryController extends Controller
$gridChart->drawBars( $gridChart->drawBars(
array( array(
'label' => $this->translate('Notifications'), 'label' => $this->translate('Notifications'),
'color' => 'green', 'color' => '#049baf',
'data' => $this->notificationData, 'data' => $this->notificationData,
'showPoints' => true 'showPoints' => true
) )
@ -487,7 +487,7 @@ class Monitoring_AlertsummaryController extends Controller
$gridChart->drawLines( $gridChart->drawLines(
array( array(
'label' => $this->translate('Defects'), 'label' => $this->translate('Defects'),
'color' => 'red', 'color' => '#ff5566',
'data' => $this->problemData, 'data' => $this->problemData,
'showPoints' => true 'showPoints' => true
) )

View File

@ -11,19 +11,19 @@ $helper = $this->getHelper('MonitoringState');
</div> </div>
<div class="content alertsummary"> <div class="content alertsummary">
<h1><?= $this->translate('Alert summary'); ?></h1> <!-- <h1><?= $this->translate('Alert summary'); ?></h1> -->
<div class="alertsummary-flex-container"> <div class="hbox">
<div class="alertsummary-flex"> <div class="hbox-item">
<h2><?= $this->translate('Notifications and problems'); ?></h2> <h2><?= $this->translate('Notifications and Problems'); ?></h2>
<div> <div style="width: 400px; height: 400px;">
<?= $defectChart->render(); ?> <?= $defectChart->render(); ?>
</div> </div>
</div> </div>
<div class="alertsummary-flex"> <div class="hbox-item">
<h2><?= $this->translate('Time to reaction (Ack, Recover)'); ?></h2> <h2><?= $this->translate('Time to Reaction (Ack, Recover)'); ?></h2>
<div> <div style="width: 400px; height: 400px;">
<?= $healingChart->render(); ?> <?= $healingChart->render(); ?>
</div> </div>
</div> </div>
@ -56,7 +56,7 @@ $helper = $this->getHelper('MonitoringState');
</div> </div>
<?php if ($this->recentAlerts): ?> <?php if ($this->recentAlerts): ?>
<h2><?= $this->translate('Top 5 recent alerts'); ?></h2> <h1><?= $this->translate('Top 5 Recent Alerts'); ?></h1>
<div class="alertsummary-flex-container"> <div class="alertsummary-flex-container">
<div class="alertsummary-flex"> <div class="alertsummary-flex">
@ -69,7 +69,7 @@ $helper = $this->getHelper('MonitoringState');
</div> </div>
<?php endif; ?> <?php endif; ?>
<h2><?= $this->translate('History'); ?></h2> <h1><?= $this->translate('History'); ?></h1>
<div class="alertsummary-flex-container"> <div class="alertsummary-flex-container">
<div class="alertsummary-flex"> <div class="alertsummary-flex">
<?= $this->partial('list/notifications.phtml', array( <?= $this->partial('list/notifications.phtml', array(

View File

@ -193,3 +193,12 @@ table.benchmark {
.controls a { .controls a {
color: inherit; color: inherit;
} }
/* controls have no padding as of tabs */
.controls > h1 {
margin-right: 1em;
}
[class^="icon-"]:before, [class*=" icon-"]:before {
text-decoration: none;
}