Skip to content

Commit c5b716a

Browse files
committed
Show a message when there are no visualisations
If there are no visualisations to show on the visualisations page, show a message rather than just an empty page to avoid ambiguity for the user.
1 parent 51af2b4 commit c5b716a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

templates/visualisations.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@
1111
<h1>Visualisations</h1>
1212
</header>
1313
<main>
14+
{% if visualisations %}
1415
<ul class="visualisation-list">
1516
{% for v in visualisations %}
1617
<li>
1718
<a href="{{ url_for('graph_page', source_path=v.source_path) }}">{{ v.source_path }}</a>
1819
</li>
1920
{% endfor %}
2021
</ul>
22+
{% else %}
23+
<p>There are no visualisations to show</p>
24+
{% endif %}
2125
</main>
2226
</body>
2327
</html>

0 commit comments

Comments
 (0)