Skip to content
Snippets Groups Projects
Commit 86a355c0 authored by Tomi Valentová's avatar Tomi Valentová
Browse files

fix names

parent 72521511
No related branches found
No related tags found
2 merge requests!1105fix names,!1104fix names
Pipeline #19372 passed
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
py-2 flex gap-6 items-center underline-offset-2 py-2 flex gap-6 items-center underline-offset-2
" "
> >
{% with self.page.specific as specific_page %}
<div class="font-bold text-xl w-8"> <div class="font-bold text-xl w-8">
{{ self.number }} {{ self.number }}
</div> </div>
...@@ -16,7 +17,7 @@ ...@@ -16,7 +17,7 @@
flex font-bold justify-center items-center rounded-full w-12 shrink-0 grow-1 flex font-bold justify-center items-center rounded-full w-12 shrink-0 grow-1
" "
> >
{% with self.page.specific.get_profile_image as profile_image %} {% with specific_page.get_profile_image as profile_image %}
{% if profile_image %} {% if profile_image %}
{% image profile_image fill-150x150 class="object-cover w-12 shrink-0 grow-1" %} {% image profile_image fill-150x150 class="object-cover w-12 shrink-0 grow-1" %}
{% endif %} {% endif %}
...@@ -32,17 +33,17 @@ ...@@ -32,17 +33,17 @@
> >
<h4 <h4
class="text-xl font-bold w-64" class="text-xl font-bold w-64"
>{{ self.page.get_full_name }}</h4> >{{ specific_page.get_full_name }}</h4>
<p class="lg:ml-6"> <p class="lg:ml-6">
{% if show_job and self.page.job %} {% if show_job and specific_page.job %}
{{ self.page.job }} {{ specific_page.job }}
{% elif self.page.position %} {% elif specific_page.position %}
{{ self.page.position }} {{ specific_page.position }}
{% endif %} {% endif %}
</p> </p>
{% if self.page.is_pirate is not None %} {% if specific_page.is_pirate is not None %}
<div <div
class=" class="
font-bold flex items-center gap-1 font-bold flex items-center gap-1
...@@ -50,7 +51,7 @@ ...@@ -50,7 +51,7 @@
lg:ml-auto lg:ml-auto
" "
> >
{% if self.page.is_pirate %} {% if specific_page.is_pirate %}
<img <img
class="w-8" class="w-8"
alt="Logo pirátské strany" alt="Logo pirátské strany"
...@@ -60,23 +61,24 @@ ...@@ -60,23 +61,24 @@
<div> <div>
Pirátská Strana Pirátská Strana
</div> </div>
{% elif self.page.other_party %} {% elif specific_page.other_party %}
{% if self.page.other_party_logo %} {% if specific_page.other_party_logo %}
{% image self.page.other_party_logo fill-150x150 as other_party_logo_image %} {% image specific_page.other_party_logo fill-150x150 as other_party_logo_image %}
<img <img
class="w-8" class="w-8"
alt="Logo {{ self.page.other_party }}" alt="Logo {{ specific_page.other_party }}"
src="{{ other_party_logo_image.url }}" src="{{ other_party_logo_image.url }}"
> >
<div> <div>
{{ self.page.other_party }} {{ specific_page.other_party }}
</div> </div>
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% endwith %}
</a> </a>
</li> </li>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment