Statistics
| Branch: | Tag: | Revision:

root / cloudcmsblog / templates / cloudcmsblog / archive.html @ c1468bcc

History | View | Annotate | Download (1.2 kB)

1
{% load applicationcontent_tags pagination_tags i18n %}
2

    
3
{% autopaginate entries ENTRIES_PER_PAGE %}
4
{% fragment request "maincol" %}
5
<div class="blog-entries">
6
    {% for entry in entries %}
7
    <div class="blog-entry">
8
        <h3 class="title">
9
            <a href="{{ entry.get_absolute_url }}">{{ entry.title|upper }}</a>
10
        </h3>
11
        {% if entry.image %}
12
        <div class="media">
13
        <img src="{{ entry.image.get_absolute_url }}" alt="{{ entry.title }}" />
14
        </div>
15
        {% endif %}
16
        {% if entry.intro_text %}
17
        <div class="intro-content">
18
            {{ entry.intro_text|safe }}
19
        </div>
20
        {% endif %}
21
        <div class="entry-info">
22
            {% trans "posted by" %} 
23
            <span class="author">{{ entry.author }}</span>
24
            {% trans "on" %} <span class="date">{{ entry.published_on }}</span>,
25
            {% trans "filed under" %}
26
            {% for c in entry.categories.all %}
27
            <a href="{{ c.get_absolute_url }}" title="{{ c|lower }} {% trans "posts" %}">
28
                {{ c|lower }}
29
            </a> {% if not forloop.last %},{% endif %}
30
            {% endfor %}
31
        </div>
32
    </div>
33
    {% endfor %}
34
</div>
35
<div class="pages">
36
    {% paginate %}
37
</div>
38
{% endfragment %}