This file is indexed.

/usr/share/icingaweb2/modules/monitoring/application/views/scripts/list/downtimes.phtml is in icingaweb2-module-monitoring 2.1.0-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
use Icinga\Module\Monitoring\Object\Host;
use Icinga\Module\Monitoring\Object\Service;

if (! $this->compact): ?>
<div class="controls separated dont-print">
    <?= $tabs ?>
    <?= $this->render('list/components/selectioninfo.phtml') ?>
    <div class="grid">
        <?= $this->sortBox ?>
        <?= $this->limiter ?>
        <?= $this->paginator ?>
    </div>
    <?= $this->filterEditor ?>
</div>
<?php endif ?>
<div class="content">
  <table data-base-target="_next"
         class="table-row-selectable state-table multiselect"
         data-icinga-multiselect-url="<?= $this->href('monitoring/downtimes/show'); ?>"
         data-icinga-multiselect-controllers="<?= $this->href("monitoring/downtimes") ?>"
         data-icinga-multiselect-data="downtime_id">
    <tbody>
    <?php foreach ($downtimes->peekAhead($this->compact) as $downtime):
      if (isset($downtime->service_description)) {
          $this->isService = true;
          $this->stateName = Service::getStateText($downtime->service_state);
      } else {
          $this->isService = false;
          $this->stateName = Host::getStateText($downtime->host_state);
      }
      $this->downtime = $downtime;
    ?>
    <tr href="<?= $this->href('monitoring/downtime/show', array('downtime_id' => $downtime->id)) ?>">
      <?= $this->render('partials/downtime/downtime-header.phtml'); ?>
    </tr>
    <?php endforeach ?>
    </tbody>
  </table>
<?php if (! $downtimes->hasResult()): ?>
  <?= $this->translate('No downtimes found matching the filter, maybe the downtime already expired.'); ?>
<?php elseif ($downtimes->hasMore()): ?>
  <?= $this->qlink(
    $this->translate('Show More'),
    $this->url()->without(array('view', 'limit')),
    null,
    array(
      'data-base-target'    => '_next',
      'class'               => 'pull-right action-link'
    )
  ); ?>
<?php endif ?>
</div>