summaryrefslogtreecommitdiffstats
path: root/modules/setup/application/views/scripts/index/parts/finish.phtml
blob: dc5ba1c05426554ecbda4fec1db184ce1db51bad (plain)
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
<div id="setup-finish">
 <?php if ($success): ?>
  <h2 class="success"><?= $this->translate('Congratulations! Icinga Web 2 has been successfully set up.'); ?></h2>
 <?php else: ?>
  <h2 class="failure"><?= $this->translate('Sorry! Failed to set up Icinga Web 2 successfully.'); ?></h2>
 <?php endif ?>
  <div class="buttons pull-right">
  <?php if ($success): ?>
    <?= $this->qlink(
        $this->translate('Login to Icinga Web 2'),
        'authentication/login',
        null,
        array(
            'class' => 'button-link login',
            'data-no-icinga-ajax' => true,
            'title' => $this->translate('Show the login page of Icinga Web 2')
        )
    ); ?>
  <?php else: ?>
    <?= $this->qlink(
        $this->translate('Back'),
        null,
        null,
        array(
            'class' => 'button-link',
            'title' => $this->translate('Show previous wizard-page')
        )
    ); ?>
  <?php endif ?>
  </div>
  <pre class="log-output"><?= join("\n\n", array_map(function($a) {
    return join("\n", $a);
  }, $report)); ?></pre>
</div>