This commit is contained in:
Jay Trees 2022-03-04 11:04:19 +01:00
parent 77d470dd60
commit 0bae0abbbb
3 changed files with 20 additions and 6 deletions

View file

@ -27,11 +27,19 @@ $page->navigation();
<div class="ui four column doubling stackable grid">
<?php if ($user->isLoggedIn()) { ?>
<div class="column"><a class="ui fluid primary button" href="/?page=wishlists">Create a wishlist</a></div>
<div class="column"><a class="ui fluid button" href="/?page=wishlists">View your wishlists</a></div>
<div class="column">
<a class="ui fluid primary button" href="/?page=wishlists">Create a wishlist</a>
</div>
<div class="column">
<a class="ui fluid button" href="/?page=wishlists">View your wishlists</a>
</div>
<?php } else { ?>
<div class="column"><a class="ui fluid primary button" href="/?page=register">Register now</a></div>
<div class="column"><a class="ui fluid button" href="/?page=login">Login</a></div>
<div class="column">
<a class="ui fluid primary button" href="/?page=register">Register now</a>
</div>
<div class="column">
<a class="ui fluid button" href="/?page=login">Login</a>
</div>
<?php } ?>
</div>

View file

@ -22,7 +22,10 @@ $page->navigation();
<h2 class="ui header">Restricted access</h2>
<p>
You do not have enough power to view this page.
You need <strong><?= $_GET['required'] ?></strong> to see this page, but only have <strong><?= $user->power ?></strong>.
You need
<strong><?= $_GET['required'] ?></strong>
to see this page, but only have
<strong><?= $user->power ?></strong>.
</p>
</div>
</div>

View file

@ -25,7 +25,10 @@ if (isset($_POST['mjml_api'], $_POST['api_key'], $_POST['api_secret'])) {
<div class="ui segment">
<h2 class="ui header">MJML</h2>
<p>MJML is required for sending emails. Visit <a href="https://mjml.io/api" target="_blank">https://mjml.io/api</a> to request API access.</p>
<p>
MJML is required for sending emails.
Visit <a href="https://mjml.io/api" target="_blank">https://mjml.io/api</a> to request API access.
</p>
<h3 class="ui header">API</h3>
<form class="ui form" method="POST">