Skip to content
Snippets Groups Projects
Select Git revision
  • c2c5ecf6af1ce169468ad0adf68a0b827df32efb
  • master default protected
2 results

Dockerfile

Blame
  • candidate_secondary_box.html 1.97 KiB
    {% load wagtailimages_tags static %}
    
    <li class="candidate-secondary-box container--wide">
      <a
        href="{{ self.page.url }}"
        class="
          py-2 flex gap-6 items-center underline-offset-2
        "
      >
        <div class="font-bold text-xl w-8">
          {{ self.number }}
        </div>
    
        <div
          class="
            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 %}
          {% if profile_image %}
            {% image profile_image fill-150x150 class="object-cover w-12 shrink-0 grow-1" %}
          {% endif %}
        </div>
    
        <div
          class="
            flex gap-2 flex-col w-full
    
            lg:gap-6 lg:flex-row
          "
        >
          <h4
            class="text-xl font-bold w-64"
          >{{ self.page.get_full_name }}</h4>
    
          <p class="lg:ml-6">
            {% if show_job and self.page.job %}
              {{ self.page.job }}
            {% elif self.page.position %}
              {{ self.page.position }}
            {% endif %}
          </p>
    
          {% if self.page.is_pirate is not None %}
            <div
              class="
                font-bold flex items-center gap-1
    
                lg:ml-auto
              "
            >
              {% if self.page.is_pirate %}
                <img
                  class="w-8"
                  alt="Logo pirátské strany"
                  src="{% static "styleguide2/images/logo-round-black.svg" %}"
                >
    
                <div>
                  Pirátská Strana
                </div>
              {% elif self.page.other_party %}
                {% if self.page.other_party_logo %}
                  {% image self.page.other_party_logo fill-150x150 as other_party_logo_image %}
    
                  <img
                    class="w-8"
                    alt="Logo {{ self.page.other_party }}"
                    src="{{ other_party_logo_image.url }}"
                  >
    
                  <div>
                    {{ self.page.other_party }}
                  </div>
                {% endif %}
              {% endif %}
            </div>
          {% endif %}
        </div>
      </a>
    </li>