--- a/templates/cluster.html Tue Jun 20 10:32:50 2017 +0300 +++ b/templates/cluster.html Wed Jun 21 18:24:34 2017 +0300 @@ -4,6 +4,7 @@ <link rel="stylesheet" type="text/css" href="/static/style.css" /> <meta charset='UTF-8' /> <title>{{name}}</title> + {% if amount_of_stops_in_cluster >= 5 %} <style> div.stops-in-cluster { @@ -12,12 +13,16 @@ } div.stops-in-cluster ul { - columns: 2; + columns: 3; } + </style> + {% endif %} + <style> div.stops-in-cluster li { text-align: center; - }/* + } + /* body { background: url('/static/tausta-pysäkki.png') no-repeat center center fixed; @@ -28,7 +33,7 @@ <body> <h1><img src="/static/iso-pysäkki.png" height="96" /> <span>{{name}}</span></h1> <p id="pysäkki-info"> - <a class="pysäkki-sijainti" href="{{linkki_karttaan}}" target="_blank">📌 ({{location}})</a> + <a class="pysäkki-sijainti" href="{{link_to_map}}" target="_blank">📌 ({{location}})</a> </p> <p>Pysäkit ryhmässä:</p> <div class="stops-in-cluster">