Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (1.6 kB)

1
{% load applicationcontent_tags pagination_tags i18n %}
2

    
3
{% autopaginate entries ENTRIES_PER_PAGE %}
4
{% fragment request "maincol" %}
5
<div class="posts">
6
        <ul>
7
            {% for entry in entries %}
8
            <li>
9
                     
10
                     
11
                        <p class="date">{{ entry.published_on|date:"d M Y"|upper}}</p>
12
                        <h2>
13
                    <a href="{{ entry.get_absolute_url }}">{{ entry.title|upper }}</a>
14
                </h2>
15
                        {% if entry.image %}
16
                <a href="{{ entry.get_absolute_url }}">        
17
                        <img src="{{ entry.image.get_absolute_url }}" alt="{{ entry.title }}" />
18
                </a>
19
                {% endif %}
20
                 
21
                 
22
                        
23
                {% if entry.intro_text %}
24
                <div class="intro-content">
25
                    {{ entry.intro_text|safe|truncatewords:100 }}
26
                    {% if entry.intro_text|safe|wordcount > 100 %}
27
                        <a href="{{ entry.get_absolute_url }}">{% trans "read more" %}</a>
28
                    {% endif %}
29
                </div>
30
                {% endif %}
31
                     
32
                        
33
                         
34
                        
35
                       
36
                <p class="info">
37
                    {% trans "posted by" %} 
38
                    <span class="author">{{ entry.author }}</span>
39
                    {% trans "on" %} <span class="date">{{ entry.published_on }}</span>,
40
                    {% trans "filed under" %}
41
                    {% for c in entry.categories.all %}
42
                    <a href="{{ c.get_absolute_url }}" title="{{ c|lower }} {% trans "posts" %}">
43
                        {{ c|lower }}
44
                    </a> {% if not forloop.last %},{% endif %}
45
                    {% endfor %}
46
                </p>
47
            </li>
48
            {% endfor %}
49
        </ul>
50
</div>
51
<div class="pages">
52
    {% paginate %}
53
</div>
54
{% endfragment %}