first commit
This commit is contained in:
50
themes/fsmi-theme/templates/article.html
Normal file
50
themes/fsmi-theme/templates/article.html
Normal file
@@ -0,0 +1,50 @@
|
||||
{% set name = article.title %}
|
||||
{% set link = article.url %}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% from 'macro.html' import article_info with context %}
|
||||
{% from 'macro.html' import genurl with context %}
|
||||
|
||||
{{ article_info(article) }}
|
||||
<hr/>
|
||||
|
||||
<div id="article_content">
|
||||
{{ article.content }}
|
||||
</div>
|
||||
|
||||
<hr/>
|
||||
{% if article.related_posts %}
|
||||
{% from 'macro.html' import article_panel_list with context %}
|
||||
{% set articles = article.related_posts %}
|
||||
{% set parent = '' %}
|
||||
{% set id = "collapseRelated" %}
|
||||
{% set title_left = "Verwandte Posts" %}
|
||||
{% set title_right = articles|count %}
|
||||
{% set entry_list = articles %}
|
||||
{{ article_panel_list(parent,id,title_left,title_right,entry_list) }}
|
||||
{% endif %}
|
||||
|
||||
{% for temp in dates %}
|
||||
{% if temp.url == article.url %}
|
||||
{% if not loop.first %}
|
||||
{% set prev = dates[loop.index0-1] %}
|
||||
{% endif %}
|
||||
{% if not loop.last %}
|
||||
{% set next = dates[loop.index0+1] %}
|
||||
{% endif %}
|
||||
<ul class="pager">
|
||||
<li class="previous{% if not prev %} disabled{% endif %}">
|
||||
<a {% if prev %}href="{{ genurl( prev.url, force=True ) }}"{% endif %}>
|
||||
« Neuer</a>
|
||||
</li>
|
||||
<li class="next{% if not next %} disabled{% endif %}">
|
||||
<a {% if next %}href="{{ genurl( next.url, force=True ) }}"{% endif %}>
|
||||
Älter »</a>
|
||||
</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user