parent
b56e6be8c9
commit
77af72a712
|
@ -36,9 +36,7 @@
|
|||
<nav class="nav" id="main-nav" aria-label="Navigation">
|
||||
<span class="nav-item"><a href="/about">About this site</a></span>
|
||||
|
||||
{% if authenticated %}
|
||||
<span class="nav-item"><a href="/search">Search</a></span>
|
||||
{% endif %}
|
||||
<span class="nav-item"><a href="/search">Search</a></span>
|
||||
|
||||
{% if authenticated %}
|
||||
<span class="nav-item"><a href="/post">Post</a></span>
|
||||
|
@ -47,48 +45,43 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
{% if authenticated %}
|
||||
<nav class="nav top" aria-label="History Navigation">
|
||||
{% if not is_first_page %}
|
||||
<span class="nav-item"><a href="?page={{ previous_page_slug }}">Newer</a></span>
|
||||
{% endif %}
|
||||
|
||||
<nav class="nav top" aria-label="History Navigation">
|
||||
{% if not is_first_page %}
|
||||
<span class="nav-item"><a href="?page={{ previous_page_slug }}">Newer</a></span>
|
||||
{% endif %}
|
||||
<span class="nav-item"><span class="current-page">{{ page.formatted_name }}</span></span>
|
||||
|
||||
<span class="nav-item"><span class="current-page">{{ page.formatted_name }}</span></span>
|
||||
{% if not is_last_page %}
|
||||
<span class="nav-item"><a href="?page={{ next_page_slug }}">Older</a></span>
|
||||
{% endif %}
|
||||
</nav>
|
||||
|
||||
{% if not is_last_page %}
|
||||
<span class="nav-item"><a href="?page={{ next_page_slug }}">Older</a></span>
|
||||
{% endif %}
|
||||
</nav>
|
||||
|
||||
{% for thought in thoughts %}
|
||||
<div class="thought{% if thought.uuid == highlighted %} highlighted{% endif %}" id="{{ thought.uuid }}">
|
||||
{% if thought.uuid == highlighted %}
|
||||
{% if authenticated %}
|
||||
{{ thought.get_html_content_authenticated }}
|
||||
{% else %}
|
||||
{{ thought.get_html_content }}
|
||||
{% endif %}
|
||||
{% for thought in thoughts %}
|
||||
<div class="thought{% if thought.uuid == highlighted %} highlighted{% endif %}" id="{{ thought.uuid }}">
|
||||
{% if thought.uuid == highlighted %}
|
||||
{% if authenticated %}
|
||||
{{ thought.get_html_content_authenticated }}
|
||||
{% else %}
|
||||
{{ thought.html_content|safe }}
|
||||
{{ thought.get_html_content }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{{ thought.html_content|safe }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<nav class="nav bottom" aria-label="History Navigation">
|
||||
{% if not is_first_page %}
|
||||
<span class="nav-item"><a href="?page={{ previous_page_slug }}">Newer</a></span>
|
||||
{% endif %}
|
||||
<nav class="nav bottom" aria-label="History Navigation">
|
||||
{% if not is_first_page %}
|
||||
<span class="nav-item"><a href="?page={{ previous_page_slug }}">Newer</a></span>
|
||||
{% endif %}
|
||||
|
||||
<span class="nav-item"><span class="current-page">{{ page.formatted_name }}</span></span>
|
||||
<span class="nav-item"><span class="current-page">{{ page.formatted_name }}</span></span>
|
||||
|
||||
{% if not is_last_page %}
|
||||
<span class="nav-item"><a href="?page={{ next_page_slug }}">Older</a></span>
|
||||
{% endif %}
|
||||
</nav>
|
||||
{% else %}
|
||||
<h3>Thoughts is currently private. Please check back on December 15th.</h3>
|
||||
{% endif %}
|
||||
{% if not is_last_page %}
|
||||
<span class="nav-item"><a href="?page={{ next_page_slug }}">Older</a></span>
|
||||
{% endif %}
|
||||
</nav>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
|
|
Loading…
Reference in New Issue