From f978f01a6e96f8fbac1d75e43e536f4addf50691 Mon Sep 17 00:00:00 2001 From: BurnyLlama Date: Thu, 4 Nov 2021 22:58:32 +0100 Subject: [PATCH] Started work on map detailed view. --- views/pages/mapSingle.njk | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/views/pages/mapSingle.njk b/views/pages/mapSingle.njk index 118a019..d9bc532 100644 --- a/views/pages/mapSingle.njk +++ b/views/pages/mapSingle.njk @@ -1,5 +1,6 @@ {% extends "../templates/basic.njk" %} {% import "../components/_map.njk" as mapComponent %} +{% set map = data.map %} {% block head %} DDStats - Maps! @@ -9,6 +10,38 @@ {% block body %}
- {{ mapComponent.card(data.map) }} + +

{{ map.map }}

+ + + + + + + + + + + + + +
+ {% if map.mappers[1] %} + Mappers: + {% else %} + Mapper: + {% endif %} + + {{ map.mappers.join(", ") }} +
+ Category: + + {{ map.category }} +
+ Rating: + + {% for i in range(0, map.stars) %}★{% endfor %} + {% for i in range(0, 5 - map.stars) %}☆{% endfor %} +
{% endblock %} \ No newline at end of file