Skip to content
Snippets Groups Projects
Commit 9f63309e authored by quido.zientek's avatar quido.zientek
Browse files

[FIX] Person

       - admin: Lidé -> změnit na Další lidé
       - Text se nerpopisuje
       - "Aktuálně na twitteru" nadpis se zobrazuje i když nejsou tweety
       - handlovat none na telefonu, emailu na detail page
parent 17c3537e
No related branches found
No related tags found
3 merge requests!607Pirati.cz,!605[ADD] Bugfixes,!575Feature/pirati cz
Pipeline #9620 passed
...@@ -573,7 +573,7 @@ class MainPersonPage(ExtendedMetadataPageMixin, SubpageMixin, MetadataPageMixin, ...@@ -573,7 +573,7 @@ class MainPersonPage(ExtendedMetadataPageMixin, SubpageMixin, MetadataPageMixin,
people = StreamField( people = StreamField(
[("people_group", blocks.PeopleGroupBlock(label="Seznam osob"))], [("people_group", blocks.PeopleGroupBlock(label="Seznam osob"))],
verbose_name="Lidé", verbose_name="Další lidé",
blank=True, blank=True,
) )
......
...@@ -15,25 +15,31 @@ ...@@ -15,25 +15,31 @@
{{ page.perex }} {{ page.perex }}
</p> </p>
<p class="mb-5"> <p class="mb-5">
{{ paga.text|richtext }} {{ page.text|richtext }}
</p> </p>
</article> </article>
</div> </div>
<div class="grid-right-side mb-8 xl:mb-0"> <div class="grid-right-side mb-8 xl:mb-0">
{% if page.email or page.phone %}
<div class="bg-grey-100 flex flex-col justify-center mb-1 px-7 py-4 xl:py-9"> <div class="bg-grey-100 flex flex-col justify-center mb-1 px-7 py-4 xl:py-9">
{% if page.email %}
<div class="flex mb-2"> <div class="flex mb-2">
<i class="ico--envelope mr-2"></i> <i class="ico--envelope mr-2"></i>
<a href="mailto:{{ page.email }}" class="text-turquoise-500 underline"> <a href="mailto:{{ page.email }}" class="text-turquoise-500 underline">
{{ page.email }} {{ page.email }}
</a> </a>
</div> </div>
{% endif %}
{% if page.phone %}
<div class="flex"> <div class="flex">
<i class="ico--phone mr-2"></i> <i class="ico--phone mr-2"></i>
<a href="tel:{{ page.phone }}"> <a href="tel:{{ page.phone }}">
{{ page.phone }} {{ page.phone }}
</a> </a>
</div> </div>
{% endif %}
</div> </div>
{% endif %}
{% if page.social_links %} {% if page.social_links %}
<div class="bg-grey-100 flex flex-col justify-center px-7 py-4 xl:py-9"> <div class="bg-grey-100 flex flex-col justify-center px-7 py-4 xl:py-9">
{% for social_block in page.social_links %} {% for social_block in page.social_links %}
...@@ -57,7 +63,7 @@ ...@@ -57,7 +63,7 @@
</h2> </h2>
<div class="__js-root twitter-carousel-root"> <div class="__js-root twitter-carousel-root">
<ui-twitter-carousel> <ui-twitter-carousel>
{% for tweet in page.tweet_list %} {% for tweet in tweet_list %}
<div class="w-full flex max-w-xs"> <div class="w-full flex max-w-xs">
<div class="mb-5 p-4 flex flex-col items-center text-center border border-grey-100 sm:mb-0"> <div class="mb-5 p-4 flex flex-col items-center text-center border border-grey-100 sm:mb-0">
<div class="flex flex-row sm:flex-col items-center"> <div class="flex flex-row sm:flex-col items-center">
...@@ -76,7 +82,7 @@ ...@@ -76,7 +82,7 @@
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
</ui-twitter-carousel> <ui-twitter-carousel>
</div> </div>
</div> </div>
</section> </section>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment