<div class="controls">
<?= $this->tabs ?>
<?php
$url = $this->url()->without('checksum')->without('show');
?>

<div class="pagination-control" style="float: right; width: 5em;">
<ul class="nav tab-nav">
  <li class="nav-item"><?php if ($this->neighbors->prev): ?>
 <a href="<?= $url->with('id', $this->neighbors->prev) ?>"><?=
   $this->icon('angle-double-left')
 ?></a>
<?php else: ?>
<span class="disabled"><?= $this->icon('angle-double-left') ?></span>
<?php endif ?>
</li><li>
<?php if ($this->neighbors->next): ?>
 <a href="<?= $url->with('id', $this->neighbors->next) ?>"><?=
   $this->icon('angle-double-right')
 ?></a>
<?php else: ?>
 <span class="disabled"><?= $this->icon('angle-double-right') ?></span>
<?php endif ?>
</li>
</div>

<h1><?= $this->translate('Activity log entry') ?></h1>
</div>

<div class="content">
<table class="name-value-table">
  <tr>
    <th><?= $this->translate('Author') ?></th>
    <td><?= $this->escape($this->entry->author) ?></td>
  </tr>
  <tr>
    <th><?= $this->translate('Date') ?></th>
    <td><?= $this->entry->change_time ?></td>
  </tr>
<?php if ($this->object_name): ?>
  <tr>
    <th><?= $this->translate('Action') ?></th>
    <td><?= $this->entry->action_name ?></td>
  </tr>
<?php else: ?>
  <tr>
    <th><?= $this->translate('Action') ?></th>
    <td data-base-target="_next"><?= sprintf(
        '%s %s "%s"',
        $this->entry->action_name,
        $this->entry->object_type,
        $this->qlink(
            $this->entry->object_name,
            'director/' . preg_replace('/^icinga_/', '', $this->entry->object_type),
            array('name' => $this->entry->object_name)
        )
    )
    ?></td>
  </tr>
<?php endif ?>
<?php if ($this->hasBeenEnabled): ?>
  <tr>
    <th><?= $this->translate('Rendering') ?></th>
    <td><?= $this->translate('This object has been enabled') ?></td>
  </tr>
<?php endif ?>
<?php if ($this->hasBeenDisabled): ?>
  <tr>
    <th><?= $this->translate('Rendering') ?></th>
    <td><?= $this->translate('This object has been disabled') ?></td>
  </tr>
<?php endif ?>
  <tr>
    <th><?= $this->translate('Checksum') ?></th>
    <td><?= $this->entry->checksum ?></td>
  </tr>
<?php if ($this->form): ?>
  <tr>
    <th><?= $this->translate('Actions') ?></th>
    <td><?= $this->form ?></td>
  </tr>
<?php endif ?>
</table>
<?php if (! empty($this->output)): ?>
<h1><?= $this->escape($this->title) ?></h1>
<?= $this->output ?>
<?php endif ?>
</div>
