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