root / cloudcmsblog / templates / cloudcmsblog / detail.html @ aa8ce0dc
History | View | Annotate | Download (1.2 kB)
1 |
{% load applicationcontent_tags i18n %} |
---|---|
2 |
|
3 |
{% fragment request "maincol" %} |
4 |
<div class="blog-entry single"> |
5 |
<h2 class="title">{{ entry.title|upper }}</h2> |
6 |
<div class="entry-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 |
</div>
|
17 |
{% if entry.image %} |
18 |
<div class="media"> |
19 |
<img src="{{ entry.image.get_absolute_url }}" alt="{{ entry.title }}" /> |
20 |
</div>
|
21 |
{% endif %} |
22 |
<div class="content"> |
23 |
{% for content in entry.content.main %} |
24 |
{{ content.render }} |
25 |
{% endfor %} |
26 |
</div>
|
27 |
|
28 |
<div class="bottom-content"> |
29 |
<a href="{{ entry.back_url }}">{% trans "Back to blog" %}</a> |
30 |
</div>
|
31 |
</div>
|
32 |
{% endfragment %} |
33 |
|
34 |
{% if entry.content.sidebar|length > 0 %}
|
35 |
{% fragment request "sidecol" %} |
36 |
{% for content in entry.content.sidebar %} |
37 |
{{ content.render }} |
38 |
{% endfor %} |
39 |
{% endfragment %} |
40 |
{% endif %} |