HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
log_bar.php
Go to the documentation of this file.
1 <?php
2 /* @var Yii2LogPanel $this */
3 /* @var int $count */
4 /* @var int $errorCount */
5 /* @var int $warningCount */
6 /* @var int $infoCount */
7 
8 $title = "Logged $count messages";
9 if ($errorCount) $title .= " $errorCount errors";
10 if ($warningCount) $title .= " $warningCount warnings";
11 if ($infoCount) $title .= " $infoCount info";
12 ?>
13 <div class="yii2-debug-toolbar-block">
14  <a href="<?php echo $this->getUrl(); ?>" title="<?php echo $title; ?>">
15  Log <span class="label"><?php echo $count; ?></span>
16  </a>
17  <?php if ($errorCount): ?>
18  <a href="<?php echo $this->getUrl(); ?>#first-error" title="<?php echo $title; ?>">
19  <span class="label label-important"><?php echo $errorCount; ?></span>
20  </a>
21  <?php endif; ?>
22  <?php if ($warningCount): ?>
23  <a href="<?php echo $this->getUrl(); ?>#first-warning" title="<?php echo $title; ?>">
24  <span class="label label-warning"><?php echo $warningCount; ?></span>
25  </a>
26  <?php endif; ?>
27  <?php if ($infoCount): ?>
28  <a href="<?php echo $this->getUrl(); ?>#first-info" title="<?php echo $title; ?>">
29  <span class="label label-info"><?php echo $infoCount; ?></span>
30  </a>
31  <?php endif; ?>
32 </div>