Socialify

Folder ..

Viewing archives.html
26 lines (24 loc) • 694.0 B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% extends 'blog/partials/base.html' %} {% block content %}
<h2 style="margin-top:15px;">Archives</h2>
{% load static %}
{% if archives %}
<div id="archives-area">
    <ul style="border-radius: 8px;">
        {% for archive in archives %}
        <li>
            <span>
                <img src="{% static 'images/site/icons/cabinet.gif' %}" alt="Archive" border="0">
            </span>
            <span>
                <a href="{% url 'blog:archives' %}/{{ archive | date:"F_Y" }}">
                    {{ archive | date:"F Y" }}
                </a>
            </span>
        </li>
        {% endfor %}
    </ul>
</div>
{% else %}
<p>No archives found.</p>
{% endif %}

{% endblock %}