diff --git a/README.md b/README.md index 7440ea633c825990362a65a35b5cf4b8300c2bbe..bc2c3c77b9802d97e8f3b7bc66b89eb60cc244a2 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ Přes CRON je třeba na pozadí spouštět Django `manage.py` commandy: * `publish_scheduled_pages` - publikuje naplánované stránky (každou hodinu) * `update_callendars` - stáhne a aktualizuje kalendáře (několikrát denně) * `update_redmine_issues` - aktualizuje programované body MS a KS stránek napojených na Redmine (několikrát denně) -* `update_tweets` - aktualizuje tweety z účtu PiratskaStrana (každou hodinu) - vyžaduje mít v .env TWITTER_BEARER_TOKEN +* `update_tweets` - aktualizuje tweety podle nastavení na Homepage pirati.cz - vyžaduje mít v .env TWITTER_BEARER_TOKEN, parametr --days určuje stáří tweetů (default 1) ### Fulltextové vyhledávání v češtině diff --git a/main/templates/main/includes/person_contact_big.html b/main/templates/main/includes/person_contact_big.html new file mode 100644 index 0000000000000000000000000000000000000000..7384ac074f33574cf24891395a9ba5e9c6445707 --- /dev/null +++ b/main/templates/main/includes/person_contact_big.html @@ -0,0 +1,28 @@ +<div class="flex mb-8 person-box-big max-w-md xl:max-w-xl flex-col xl:flex-row xl:mb-16"> + <div class="shrink-0 mr-2"> + <img + class="rounded-full shadow-sm w-30 xl:w-60 mb-2" + src="https://randomuser.me/api/portraits/women/26.jpg" + alt=" {{ name }}" + > + </div> + <div class="flex flex-col justify-between py-4"> + <div class="flex flex-col mb-4"> + <h4 class="font-bold mb-2 text-2xl xl:text-4xl"> + {{ person_page.title }} + </h4> + <span class="leading-6 mb-6 w-10/12"> + {{ person_page.position | default_if_none:'' }} + </span> + <span class="font-bold mb-1 text-grey-300"> + {{ person_page.phone | default_if_none:'' }} + </span> + <span class="text-turquoise-500 underline"> + {{ person_page.email | default_if_none:'' }} + </span> + </div> + <div> + {% include 'main/includes/button_animated.html' with btn_link=person_page.url btn_text="Zobrazit více" %} + </div> + </div> +</div> diff --git a/main/templates/main/main_people_page.html b/main/templates/main/main_people_page.html index 7ff3e6e1a87c4b4fa80296e5ef76ed84c4688a5d..a5e68d34bf66d494384de96ac7e89b0aa795426a 100644 --- a/main/templates/main/main_people_page.html +++ b/main/templates/main/main_people_page.html @@ -33,7 +33,9 @@ <div class="flex flex-wrap justify-center mb-12"> {% for people_group in page.people %} <template v-if="isCurrentView('{{ people_group.value.slug }}')"> - {{ people_group.value.title }} + {% for person_page in people_group.value.person_list %} + {% include 'main/includes/person_contact_big.html' %} + {% endfor %} </template> {% endfor %} </div>