conditionalize rendering of everything

This commit is contained in:
Tomáš Mládek 2020-07-15 13:51:40 +02:00
parent 6a55261a3d
commit a2253f1845

View file

@ -13,6 +13,7 @@
<header> <header>
<h1>/-\ infrastructure</h1> <h1>/-\ infrastructure</h1>
</header> </header>
{% if links %}
<h2>important links</h2> <h2>important links</h2>
<section class="links boxes"> <section class="links boxes">
{% for link in links %} {% for link in links %}
@ -31,6 +32,8 @@
</a> </a>
{% endfor %} {% endfor %}
</section> </section>
{% endif %}
{% if services %}
<h2>internal&nbsp;services</h2> <h2>internal&nbsp;services</h2>
<section class="services boxes"> <section class="services boxes">
{% for service in services %} {% for service in services %}
@ -52,6 +55,8 @@
</a> </a>
{% endfor %} {% endfor %}
</section> </section>
{% endif %}
{% if machines %}
<h2>machines</h2> <h2>machines</h2>
<section class="machines boxes"> <section class="machines boxes">
<section class="stats"> <section class="stats">
@ -76,6 +81,8 @@
</a> </a>
{% endfor %} {% endfor %}
</section> </section>
{% endif %}
{% if feed_items %}
<h2>logs firehose</h2> <h2>logs firehose</h2>
<section class="firehose"> <section class="firehose">
<ul class="logs"> <ul class="logs">
@ -94,5 +101,6 @@
{% endfor %} {% endfor %}
</ul> </ul>
</section> </section>
{% endif %}
</body> </body>
</html> </html>