28 lines
729 B
Django/Jinja
28 lines
729 B
Django/Jinja
{% extends "lexicon.jinja" %}
|
|
{% block title %}{{ article.title }} | {{ lexicon_title }}{% endblock %}
|
|
|
|
{% block main %}
|
|
|
|
{% for message in get_flashed_messages() %}
|
|
<span style="color:#ff0000">{{ message }}</span><br>
|
|
{% endfor %}
|
|
|
|
<h1>{{ article.title }}</h1>
|
|
{{ article.html }}
|
|
|
|
{% endblock %}
|
|
|
|
{% block citations %}
|
|
<p>
|
|
{% for citation in article.cites %}
|
|
<a href="{{ citation|articlelink }}">{{ citation }}</a>{% if not loop.last %} / {% endif %}
|
|
{% endfor %}
|
|
</p>
|
|
<p>
|
|
{% for citation in article.citedby %}
|
|
<a href="{{ citation|articlelink }}">{{ citation }}</a>{% if not loop.last %} / {% endif %}
|
|
{% endfor %}
|
|
</p>
|
|
{% endblock %}
|
|
|
|
{% set template_content_blocks = [self.main(), self.citations()] %} |