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
View File
@@ -23,7 +23,6 @@ Container::$routeCollection->group('game', function (MapGuesser\Routing\RouteCol
$routeCollection->post('guess-json', '{mapId}/guess.json', [MapGuesser\Controller\GameFlowController::class, 'evaluateGuess']);
});
Container::$routeCollection->group('admin', function (MapGuesser\Routing\RouteCollection $routeCollection) {
$routeCollection->get('admin.maps', 'maps', [MapGuesser\Controller\MapAdminController::class, 'getMaps']);
$routeCollection->get('admin.mapEditor', 'mapEditor/{mapId}', [MapGuesser\Controller\MapAdminController::class, 'getMapEditor']);
$routeCollection->get('admin.place', 'place.json/{placeId}', [MapGuesser\Controller\MapAdminController::class, 'getPlace']);
$routeCollection->post('admin.saveMap', 'saveMap/{mapId}/json', [MapGuesser\Controller\MapAdminController::class, 'saveMap']);
+8
View File
@@ -162,6 +162,14 @@ button.red:hover, button.red:focus, a.button.red:hover, a.button.red:focus {
background-color: #7f2929;
}
button.yellow, a.button.yellow {
background-color: #e8a349;
}
button.yellow:hover, button.yellow:focus, a.button.yellow:hover, a.button.yellow:focus {
background-color: #c37713;
}
input, select, textarea {
background-color: #f9fafb;
border: solid #c8d2e1 1px;
+1 -1
View File
@@ -27,7 +27,7 @@ div.mapItem>img {
}
div.mapItem>div.inner {
padding: 8px;
padding: 10px 8px;
}
div.mapItem>div.inner>div.info {