login: Wrap the config warning in paragraph tags instead of div

This commit is contained in:
Johannes Meyer 2015-01-27 13:58:55 +01:00
parent d99d147901
commit 4a245ed8e0
2 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@
</div> </div>
<div class="form" data-base-target="layout"> <div class="form" data-base-target="layout">
<?php if ($requiresSetup): ?> <?php if ($requiresSetup): ?>
<div class="config-note"><?= sprintf( <p class="config-note"><?= sprintf(
$this->translate( $this->translate(
'It appears that you did not configure Icinga Web 2 yet so it\'s not possible to log in without any defined ' 'It appears that you did not configure Icinga Web 2 yet so it\'s not possible to log in without any defined '
. 'authentication method. Please define a authentication method by following the instructions in the' . 'authentication method. Please define a authentication method by following the instructions in the'
@ -15,7 +15,7 @@
'<a href="http://docs.icinga.org/" title="' . $this->translate('Icinga Web 2 Documentation') . '">', // TODO: More exact documentation link.. '<a href="http://docs.icinga.org/" title="' . $this->translate('Icinga Web 2 Documentation') . '">', // TODO: More exact documentation link..
'<a href="' . $this->href('setup') . '" title="' . $this->translate('Icinga Web 2 Setup-Wizard') . '">', '<a href="' . $this->href('setup') . '" title="' . $this->translate('Icinga Web 2 Setup-Wizard') . '">',
'</a>' '</a>'
); ?></div> ); ?></p>
<?php endif ?> <?php endif ?>
<h1><?= $this->translate('Welcome to Icinga Web 2'); ?></h1> <h1><?= $this->translate('Welcome to Icinga Web 2'); ?></h1>
<?php <?php

View File

@ -113,18 +113,18 @@
margin-left: 5em; margin-left: 5em;
} }
div.config-note { p.config-note {
width: 50%; width: 50%;
padding: 1em; padding: 1em;
margin: 0 auto 2.5em; margin: 0 auto 2.5em;
text-align: center; text-align: center;
color: white; color: white;
background-color: @colorCritical; background-color: @colorCritical;
}
div.config-note a { a {
color: white; color: white;
font-weight: bold; font-weight: bold;
}
} }
} }