{# Copyright (c) 2006-2007, PreFab Software Inc. #} {% load blog_extras %} {% load prefab_tags %} {% if tag or query or taglist or search or userposts or year or month or day %}
 {% if tag or query %}{% if not object_list %}No entries found {% endif %}{% if object_list %}Entries {% endif %}{% endif %} {% if tag %}tagged as '{{ tag }}' {% else %}{% if query %}containing '{% for term in query %}{{ term }}{% if not forloop.last %}, {% endif %}{% endfor %}' {% else %}{% if year %}{{ year }} Archive {% else %}{% if month %}{{ month|date:"F Y" }} Archive {% else %}{% if day %}{{ day|date:"F Y" }} {% else %}{% if taglist %}Tag Archive {% else %}{% if search %}{{ search }} {% else %}{% if userposts and not object_list %}No entries found for user {{ postedby|title }} {% else %}{% if userposts and object_list %}Entries written by {{ postedby|title }} {% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}
{% else %} {% if object and not day and not month and not year and not query and not tag and not taglist and not search and not userposts %}
{% get_previous object.id previous_post %} {% if previous_post %} < {{ previous_post.headline }} {% endif %} {% get_next object.id next_post %} {% if next_post %} {% endif %}
{% endif %} {% endif %} {% if day %}
{% for d in days %} {% ifnotequal d "no" %} {% ifequal d "yes" %} {% endifequal %} {% ifequal d "current" %} {% endifequal %} {% endifnotequal %} {% ifequal d "no" %} {% endifequal %} {% endfor %}
{{ forloop.counter }} {{ forloop.counter }} {{ forloop.counter }}
{% endif %}