diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 00:42:20 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-15 00:42:20 +1000 |
| commit | c4a6116722f7798967a8424cb47aad2a319e7a9c (patch) | |
| tree | ad204041edc1dd57d829aeb42975e8ee7bb6b892 /templates/index.html | |
| parent | 104e2bce6d6e9d222db77b87cd9824a8b7e66105 (diff) | |
Optionally show page navigation bar at the top too.
Diffstat (limited to 'templates/index.html')
| -rw-r--r-- | templates/index.html | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html index d5e6cd18..0b4fed8d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -25,6 +25,17 @@ {% include 'post_form.html' %} + {% if config.page_nav_top %} + <div class="pages top"> + {% for page in pages %} + [<a {% if page.selected %}class="selected"{% endif %}{% if not page.selected %}href="{{ page.link }}"{% endif %}>{{ page.num }}</a>]{% if loop.last %} {% endif %} + {% endfor %} {{ btn.next }} + {% if config.catalog_link %} + | <a href="{{ config.root }}{{ board.dir }}{{ config.catalog_link }}">Catalog</a> + {% endif %} + </div> + {% endif %} + {% if config.global_message %}<hr /><div class="blotter">{{ config.global_message }}</div>{% endif %} <hr /> <form name="postcontrols" action="{{ config.post_url }}" method="post"> @@ -33,9 +44,16 @@ {{ body }} {% include 'report_delete.html' %} </form> - <div class="pages">{{ btn.prev }} {% for page in pages %} + + <div class="pages"> + {{ btn.prev }} {% for page in pages %} [<a {% if page.selected %}class="selected"{% endif %}{% if not page.selected %}href="{{ page.link }}"{% endif %}>{{ page.num }}</a>]{% if loop.last %} {% endif %} - {% endfor %} {{ btn.next }}</div> + {% endfor %} {{ btn.next }} + {% if config.catalog_link %} + | <a href="{{ config.root }}{{ board.dir }}{{ config.catalog_link }}">Catalog</a> + {% endif %} + </div> + {{ boardlist.bottom }} <footer> <p class="unimportant" style="margin-top:20px;text-align:center;">Powered by <a href="http://tinyboard.org/">Tinyboard</a> {{ config.version }} | <a href="http://tinyboard.org/">Tinyboard</a> Copyright © 2010-2013 Tinyboard Development Group</p> |
