root / cloudcmsblog / templates / cloudcmsblog / detail.html @ c6fdba44
History | View | Annotate | Download (1.3 kB)
1 |
{% load applicationcontent_tags i18n %} |
---|---|
2 |
|
3 |
{% fragment request "maincol" %} |
4 |
<div class="article"> |
5 |
<h2>{{ entry.title|upper }}</h2> |
6 |
<p class="info"> |
7 |
{% trans "posted by" %} |
8 |
<span class="author">{{ entry.author }}</span> |
9 |
{% trans "on" %} <span class="date">{{ entry.published_on }}</span>, |
10 |
{% trans "filed under" %} |
11 |
{% for c in entry.categories.all %} |
12 |
<a href="{{ c.get_absolute_url }}" title="{{ c|lower }} {% trans "posts" %}"> |
13 |
{{ c|lower }} |
14 |
</a> {% if not forloop.last %},{% endif %}
|
15 |
{% endfor %} |
16 |
</p>
|
17 |
{% if entry.image %} |
18 |
<img src="{{ entry.image.get_absolute_url }}" alt="{{ entry.title }}" /> |
19 |
{% endif %} |
20 |
<div>
|
21 |
{% if entry.content.main|length > 0 %}
|
22 |
{% for content in entry.content.main %} |
23 |
{{ content.render }} |
24 |
{% endfor %} |
25 |
{% else %} |
26 |
{{ entry.intro_text|safe }} |
27 |
{% endif %} |
28 |
</div>
|
29 |
|
30 |
<p>
|
31 |
<a href="{{ entry.back_url }}">{% trans "Back to blog" %}</a> |
32 |
</p>
|
33 |
</div>
|
34 |
{% endfragment %} |
35 |
|
36 |
{% if entry.content.sidebar|length > 0 %}
|
37 |
{% fragment request "sidecol" %} |
38 |
{% for content in entry.content.sidebar %} |
39 |
{{ content.render }} |
40 |
{% endfor %} |
41 |
{% endfragment %} |
42 |
{% endif %} |