mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-23 16:19:42 -05:00
25 lines
485 B
PHTML
25 lines
485 B
PHTML
<?= $this->controls->render() ?>
|
|
|
|
<div class="content">
|
|
<?php if ($this->showDiff): ?>
|
|
<div class="diff">
|
|
<?= $this->diff->render() ?>
|
|
</div>
|
|
<?php else: ?>
|
|
<table class="sourcecode">
|
|
<?php
|
|
|
|
$cnt = 0;
|
|
$lines = preg_split('~\r?\n~', $this->source);
|
|
$len = ceil(log(count($lines), 10));
|
|
$rowhtml = sprintf('<tr><th>%%0%dd: </th><td>%%s<br></td></tr>', $len);
|
|
|
|
foreach ($lines as $line) {
|
|
$cnt++;
|
|
printf($rowhtml, $cnt, $this->escape($line));
|
|
}
|
|
|
|
?>
|
|
</table>
|
|
<?php endif ?>
|
|
</div>
|