{% extends 'base.html' %}
<!---->
{% block title %}Składki Członkowskie | pdlzbs{% endblock %}
<!---->
{% load static tailwind_tags tablepipe %} {% block content %}
<h1 class="text-center mb-4">Inne turnieje</h1>
{% if tournaments %}
<div class="flex flex-col items-center gap-4">
  {% for tournament in tournaments %}
  <article
    class="prose prose-a:text-center w-full max-w-screen-md bg-white rounded-md shadow-md p-4 pb-6"
  >
    {% if tournament.show_title %}
    <h2>{{ tournament.title }}</h2>
    {% endif %}
    <figure>
      <a href="{{ tournament.link }}" target="_blank"
        ><img src="{{ tournament.photo.url }}" alt="" class="max-h-72 mx-auto"
      /></a>
      <figcaption>{{ tournament.content | safe }}</figcaption>
    </figure>
    <p class="text-center">
      <a
        href="{{ tournament.link }}"
        target="_blank"
        class="inline px-16 button red color"
      >
        {{ tournament.link_title | default:"Wyniki" }}
      </a>
    </p>
  </article>
  {% if not forloop.last %}
  <hr class="w-36 border-b border-stone-200" />
  {% endif %} {% endfor %}
</div>
{% else %}
<h2>Brak turniejów</h2>
{% endif %} {% endblock %}
