MAPG-117 remove admin/maps and place a button to the maps page if admin is logged in

This commit is contained in:
bence committed 2020-06-10 00:30:29 +02:00
1 parent 4af6f07ce1
commit 5a450c46db
8 files changed
+22 -18

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
<div class="header small">
<div class="grid">
<h1>
<a href="/admin/maps" title="Back to maps">
<a href="/maps" title="Back to playable maps">
<img class="inline" src="/static/img/icon.svg">
<span>MapGuesser</span>
</a>
-7
View File
@@ -1,7 +0,0 @@
<?php require ROOT . '/views/templates/main_header.php'; ?>
<?php require ROOT . '/views/templates/header.php'; ?>
<div class="main">
<h2>Maps</h2>
<p>TODO</p>
</div>
<?php require ROOT . '/views/templates/main_footer.php'; ?>
+1
View File
@@ -31,6 +31,7 @@
<p class="small justify marginTop"><?= $map['description'] ?></p>
</div>
<a class="button fullWidth" href="game/<?= $map['id']; ?>" title="Play map '<?= $map['name'] ?>'">Play this map</a>
<a class="button yellow fullWidth marginTop" href="admin/mapEditor/<?= $map['id']; ?>" title="Edit map '<?= $map['name'] ?>'">Edit this map</a>
</div>
<?php endforeach; ?>
<?php if (count($maps) < 4): ?>