16 lines
430 B
Django/Jinja
16 lines
430 B
Django/Jinja
{% extends "commentable.jinja" %}
|
|
|
|
{% block header %}
|
|
{% if mode == 'teaser' %}
|
|
<h2><a href="{{ content.url('full', quiet=True) or content.url('edit', quiet=True) }}" title="{{ content.title }}">{{ content.title }}</a></h2>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if mode == 'full' %}
|
|
{{ content.text.render() }}
|
|
{% else %}
|
|
<pre class="markdown">{{ content.text|truncate }}</pre>
|
|
{% endif %}
|
|
{% endblock %}
|