{% extends 'base.html' %}
<!---->
{% block title %}Inne turnieje | pdlzbs{% endblock %}
<!---->
{% load static tailwind_tags wysiwyg %} {% block content %} {% if tournaments %}
<div class="flex flex-col items-center gap-4">
  {% for tournament in tournaments %}
  <article
    class="prose w-full max-w-screen-md bg-white rounded-md shadow-md p-4"
  >
    {% if tournament.show_title %}
    <h2 class="font-medium text-center mb-2">{{ tournament.title }}</h2>
    {% endif %}
    <figure class="flex flex-col mt-2">
      <a
        href="{{ tournament.buttons | firstbutton }}"
        target="_blank"
        class="mx-auto"
        ><img
          src="{{ tournament.photo.url }}"
          alt=""
          class="max-h-72 text-center"
      /></a>
      <figcaption>{% content tournament %}</figcaption>
    </figure>
    <div class="flex flex-wrap gap-4 items-center justify-center">
      {% buttons tournament.buttons %}
    </div>
  </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 %}
