-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
213 changed files
with
4,106 additions
and
4,616 deletions.
There are no files selected for viewing
4 changes: 1 addition & 3 deletions
4
fragdenstaat_de/fds_blog/templates/admin/fds_blog/article/change_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
{% extends "admin/change_form.html" %} | ||
|
||
{% load static %} | ||
|
||
{% block after_field_sets %} | ||
{{ block.super }} | ||
{{ adminform.model_admin.charcount_fields|json_script:"charcount-fields" }} | ||
<script src="{% static 'js/fds_blog/charcount.js' %}"></script> | ||
{% endblock %} | ||
{% endblock %} |
177 changes: 80 additions & 97 deletions
177
fragdenstaat_de/fds_blog/templates/fds_blog/_article_detail.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,122 +1,105 @@ | ||
{% load i18n cms_tags %} | ||
{% load markup %} | ||
{% load static %} | ||
|
||
{% block article_header %} | ||
<div class="blog-header-container"> | ||
<header class="blog-header"> | ||
<div class="row justify-content-center"> | ||
<div class="col-md-12 col-lg-10"> | ||
|
||
<h1 class="blog-header__title"> | ||
<span class="d-block fw-normal blog-header__meta mb-2"> | ||
{{ article.kicker }} | ||
</span> | ||
<span>{% render_model article "title" %}</span> | ||
</h1> | ||
|
||
{% if article.teaser %} | ||
<div class="blog-lead"> | ||
{% render_model article "teaser" "" "" "safe" %} | ||
</div> | ||
{% endif %} | ||
|
||
<div class="mt-3 mb-5 blog-header__meta"> | ||
<time datetime="{{ article.start_publication|date:'c' }}"> | ||
{{ article.start_publication|date:"DATE_FORMAT" }} | ||
</time> | ||
{% with authors=article.get_authors %} | ||
{% if authors %} | ||
<span> - | ||
{% for author in authors %} | ||
{% if author.get_absolute_url %} | ||
<a href="{{ author.get_absolute_url }}" rel="author"> | ||
{% endif %} | ||
{{ author.get_full_name }}{% if author.get_absolute_url %}</a>{% endif %}{% if not forloop.last %},{% endif %} | ||
{% endfor %} | ||
</span> | ||
{% endif %} | ||
{% endwith %} | ||
</div> | ||
|
||
{% block article_header_image %} | ||
{% if article.image %} | ||
{% include "fds_blog/includes/blog_picture_detail.html" with picture=article.image columns="col-12 col-lg-10" loading="eager" %} | ||
{% endif %} | ||
{% endblock article_header_image %} | ||
|
||
</div> | ||
<div class="blog-header-container"> | ||
<header class="blog-header"> | ||
<div class="row justify-content-center"> | ||
<div class="col-md-12 col-lg-10"> | ||
<h1 class="blog-header__title"> | ||
<span class="d-block fw-normal blog-header__meta mb-2">{{ article.kicker }}</span> | ||
<span>{% render_model article "title" %}</span> | ||
</h1> | ||
{% if article.teaser %} | ||
<div class="blog-lead">{% render_model article "teaser" "" "" "safe" %}</div> | ||
{% endif %} | ||
<div class="mt-3 mb-5 blog-header__meta"> | ||
<time datetime="{{ article.start_publication|date:'c' }}"> | ||
{{ article.start_publication|date:"DATE_FORMAT" }} | ||
</time> | ||
{% with authors=article.get_authors %} | ||
{% if authors %} | ||
<span> - | ||
{% for author in authors %} | ||
{% if author.get_absolute_url %}<a href="{{ author.get_absolute_url }}" rel="author">{% endif %} | ||
{{ author.get_full_name }} | ||
{% if author.get_absolute_url %}</a>{% endif %} | ||
{% if not forloop.last %},{% endif %} | ||
{% endfor %} | ||
</span> | ||
{% endif %} | ||
{% endwith %} | ||
</div> | ||
{% block article_header_image %} | ||
{% if article.image %} | ||
{% include "fds_blog/includes/blog_picture_detail.html" with picture=article.image columns="col-12 col-lg-10" loading="eager" %} | ||
{% endif %} | ||
{% endblock article_header_image %} | ||
</div> | ||
</div> | ||
</header> | ||
</div> | ||
</header> | ||
</div> | ||
{% endblock article_header %} | ||
|
||
{% block article_updates %} | ||
{% if updated_articles %} | ||
<div class="blog-content"> | ||
<p> | ||
{% blocktranslate count counter=updated_articles|length %} | ||
{% if updated_articles %} | ||
<div class="blog-content"> | ||
<p> | ||
{% blocktranslate count counter=updated_articles|length %} | ||
Updated article: | ||
{% plural %} | ||
Updated articles: | ||
{% endblocktranslate %} | ||
{% for related_article in updated_articles %} | ||
{{ related_article.publication_date|date:"SHORT_DATE_FORMAT" }} – <a href="{{ related_article.get_absolute_url }}">{{ related_article.title }}</a>{% if not forloop.last %},{% endif %} | ||
{% endfor %} | ||
</p> | ||
</div> | ||
{% endif %} | ||
{% for related_article in updated_articles %} | ||
{{ related_article.publication_date|date:"SHORT_DATE_FORMAT" }} – <a href="{{ related_article.get_absolute_url }}">{{ related_article.title }}</a> | ||
{% if not forloop.last %},{% endif %} | ||
{% endfor %} | ||
</p> | ||
</div> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block article_content %} | ||
{% render_placeholder article.content_placeholder %} | ||
{% render_placeholder article.content_placeholder %} | ||
{% endblock article_content %} | ||
|
||
{% block article_previous %} | ||
{% if previous_articles %} | ||
<div class="blog-content"> | ||
<p> | ||
{% blocktranslate count counter=previous_articles|length %} | ||
{% if previous_articles %} | ||
<div class="blog-content"> | ||
<p> | ||
{% blocktranslate count counter=previous_articles|length %} | ||
Previous article: | ||
{% plural %} | ||
Previous articles: | ||
{% endblocktranslate %} | ||
{% for related_article in previous_articles %} | ||
{{ related_article.publication_date|date:"SHORT_DATE_FORMAT" }} – <a href="{{ related_article.get_absolute_url }}">{{ related_article.title }}</a>{% if not forloop.last %},{% endif %} | ||
{% endfor %} | ||
</p> | ||
</div> | ||
{% endif %} | ||
{% for related_article in previous_articles %} | ||
{{ related_article.publication_date|date:"SHORT_DATE_FORMAT" }} – <a href="{{ related_article.get_absolute_url }}">{{ related_article.title }}</a> | ||
{% if not forloop.last %},{% endif %} | ||
{% endfor %} | ||
</p> | ||
</div> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block article_ads %} | ||
{% static_placeholder "banner_ad" %} | ||
{% static_placeholder "banner_ad" %} | ||
{% endblock article_ads %} | ||
|
||
{% block article_languages %} | ||
<div class="container"> | ||
<div class="row justify-content-center pt-5"> | ||
<div class="col-md-8"> | ||
{% with other_langs=article.other_languages %} | ||
{% if other_langs %} | ||
<p> | ||
{% trans "This article is available in other languages." %} | ||
</p> | ||
<ul class="list-unstyled"> | ||
{% for lang_article in other_langs %} | ||
<li> | ||
{{ lang_article.language|language_name }}: | ||
<a href="{{ lang_article.get_absolute_url }}"> | ||
{{ lang_article.title }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{% endwith %} | ||
<div class="container"> | ||
<div class="row justify-content-center pt-5"> | ||
<div class="col-md-8"> | ||
{% with other_langs=article.other_languages %} | ||
{% if other_langs %} | ||
<p>{% trans "This article is available in other languages." %}</p> | ||
<ul class="list-unstyled"> | ||
{% for lang_article in other_langs %} | ||
<li> | ||
{{ lang_article.language|language_name }}: | ||
<a href="{{ lang_article.get_absolute_url }}">{{ lang_article.title }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{% endwith %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock article_languages %} | ||
|
||
{% block article_authors %}{% endblock article_authors %} | ||
{% block article_authors %} | ||
{% endblock article_authors %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.