Skip to content
Snippets Groups Projects
Verified Commit deffe6f1 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

migrate district-specific blocks

parent aed77072
No related branches found
No related tags found
2 merge requests!994Release,!988Redesign
Pipeline #18386 passed
...@@ -517,7 +517,7 @@ class ArticlesBlock(StructBlock): ...@@ -517,7 +517,7 @@ class ArticlesBlock(StructBlock):
) )
class Meta: class Meta:
template = "district/blocks/articles_block.html" template = "styleguide2/includes/organisms/articles/article_list_block.html"
icon = "list-ul" icon = "list-ul"
label = "Blok aktualit" label = "Blok aktualit"
...@@ -532,6 +532,6 @@ class ArticleLinksBlock(StructBlock): ...@@ -532,6 +532,6 @@ class ArticleLinksBlock(StructBlock):
) )
class Meta: class Meta:
template = "district/blocks/article_links_block.html" template = "styleguide2/includes/organisms/articles/article_links_block.html"
icon = "list-ul" icon = "list-ul"
label = "Seznam nadpisů článků" label = "Seznam nadpisů článků"
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<div class="py-4"> <div class="py-4">
<canvas <canvas
class="lg:h-120 lg:w-auto w-full mx-auto" class="lg:h-120 lg:w-auto w-full mx-auto"
id="{{ block_id }}" id="{{ block.id }}"
></canvas> ></canvas>
</div> </div>
{% include "shared/chart_script_snippet.html" with value=value block_id=block_id %} {% include "shared/chart_script_snippet.html" with value=value block_id=block.id %}
...@@ -26,9 +26,11 @@ ...@@ -26,9 +26,11 @@
<h2 class="font-alt text-4xl">{{ article.title }}</h2> <h2 class="font-alt text-4xl">{{ article.title }}</h2>
</a> </a>
<div class="mb-6"> {% if article.tags %}
{% include 'styleguide2/includes/molecules/tags/inline_tags.html' with tags=article.get_tags tags_are_selectable=True %} <div class="mb-6">
</div> {% include 'styleguide2/includes/molecules/tags/inline_tags.html' with tags=article.get_tags tags_are_selectable=True %}
</div>
{% endif %}
<div class="flex flex-col justify-between h-full"> <div class="flex flex-col justify-between h-full">
<p class="mb-8 text-lg"> <p class="mb-8 text-lg">
......
<div
class="
flex flex-col bg-grey-180 drop-shadow
{{ classes }}
"
>
<div class="flex flex-col px-8 pb-6 pt-6 h-full">
<div class="text-xl text-grey-350 mb-2">
{{ article.date }}
</div>
<a href="{{ article.url }}" class="underline-offset-4">
<h2 class="font-alt text-4xl">{{ article.title }}</h2>
</a>
{% if article.get_tags %}
<div class="mt-2">
{% include 'styleguide2/includes/molecules/tags/inline_tags.html' with tags=article.get_tags tags_are_selectable=True %}
</div>
{% endif %}
</div>
</div>
{% if self.articles|length != 0 %}
<div class="grid grid-cols-1 md:grid-cols-2 gap-12">
{% for article in self.articles %}
{% include 'styleguide2/includes/molecules/articles/article_title_preview.html' %}
{% endfor %}
</div>
{% endif %}
{% if self.articles|length != 0 %}
<div class="grid grid-cols-1 md:grid-cols-2 gap-12">
{% for article in self.articles %}
{% include 'styleguide2/includes/molecules/articles/article_timeline_preview.html' %}
{% endfor %}
</div>
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment