Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (1.3 kB)

1
{% load applicationcontent_tags i18n %}
2

    
3
{% fragment request "maincol" %}
4
<div class="article">
5
        <p class="date">{{ entry.published_on|date:"d M Y"|upper}}</p>
6
    <h2>{{ entry.title|upper }}</h2>
7
    
8
    {% if entry.image %}
9
    <img src="{{ entry.image.get_absolute_url }}" alt="{{ entry.title }}" />
10
    {% endif %}
11
    <div> 
12
        {% if entry.content.main|length > 0 %}
13
            {% for content in entry.content.main %}
14
                {{ content.render }}
15
            {% endfor %}
16
        {% else %}
17
                {{ entry.intro_text|safe }}
18
        {% endif %}
19
    </div>
20
        <p class="info">
21
        {% trans "posted by" %} 
22
        <span class="author">{{ entry.author }}</span>
23
        {% trans "on" %} <span class="date">{{ entry.published_on }}</span>,
24
        {% trans "filed under" %}
25
        {% for c in entry.categories.all %}
26
        <a href="{{ c.get_absolute_url }}" title="{{ c|lower }} {% trans "posts" %}">
27
            {{ c|lower }}
28
        </a> {% if not forloop.last %},{% endif %}
29
        {% endfor %}
30
    </p>
31
    <p>
32
        <a href="{{ entry.back_url }}">{% trans "&lt; Back " %}</a>
33
    </p>
34
</div>
35
{% endfragment %}
36

    
37
{% if entry.content.sidebar|length > 0 %}
38
    {% fragment request "sidecol" %}
39
    {% for content in entry.content.sidebar %}
40
    {{ content.render }}
41
    {% endfor %}
42
    {% endfragment %}
43
{% endif %}