Skip to content

Commit

Permalink
Add message to empty contents pages
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ball committed Sep 9, 2020
1 parent 8800744 commit 2aa54a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rdamsc/templates/contents.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% extends "base.html" %}
{% block title %}{{ title }}{% endblock %}
{% block main %}
{% if tree %}
<ul class="index">
{% for item in tree recursive %}
{{ ' ' * loop.depth }}<li>
Expand All @@ -13,4 +14,8 @@
{{ ' ' * loop.depth }}</li>
{% endfor %}
</ul>
{% else %}
<p>There are no records to display here yet.</p>
<p>If you know of any that should be listed, please {% if current_user.is_authenticated %}add {% else %}consider <a href="{{ url_for('auth.login') }}">signing in</a> and adding {% endif %}them to the database.</p>
{% endif %}
{% endblock %}

0 comments on commit 2aa54a9

Please sign in to comment.