Schedules, fundings, polls, libraries
[wolnelektury.git] / src / club / templates / club / index.html
index ba5977b..ecc2ef9 100644 (file)
@@ -1,30 +1,28 @@
-{% extends "base/base.html" %}
+{% extends request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %}
+{% load i18n %}
 {% load active_schedule from club %}
 {% load chunks %}
 
 
-{% block titleextra %}Towarzystwo Przyjaciół Wolnych Lektur{% endblock %}
+{% block titleextra %}{% trans "Wolne Lektury need your help!" %}{% endblock %}
 
 
 {% block body %}
-<div class="white-box normal-text">
 
-       <h1>Towarzystwo Przyjaciół Wolnych Lektur</h1>
-
-       <p>Towarzystwo jest fajne.</p>
-       {% chunk 'club' %}
-
-
-<p style="margin-top: 2em;">
-{% with schedule=request.user|active_schedule %}
-{% if schedule %}
-<a href="{{ schedule.get_absolute_url }}">Gratulacje – należysz już do Towarzystwa Przyjaciół Wolnych Lektur!</a></p>
-{% else %}
-<a style="background:#018189;color:white;border-radius: 10px;padding:1em 2em" href="{% url 'club_join' %}">Dołącz do Towarzystwa</a></p>
-{% endif %}
-{% endwith %}
-
-
-</div>
+  <h1>{% trans "Wolne Lektury need your help!" %}</h1>
+  <div class="white-box normal-text">
+
+    {% chunk 'club' %}
+
+    <p style="margin-top: 2em;">
+      {% with schedule=request.user|active_schedule %}
+        {% if schedule %}
+          <a href="{{ schedule.get_absolute_url }}">{% trans "Congratulations – you're already a supporter of Wolne Lektury!" %}</a>
+        {% else %}
+          <a style="background:#018189;color:white;border-radius: 10px;padding:1em 2em" href="{% url 'club_join' %}">{% trans "Become a supporter" %}</a>
+        {% endif %}
+      {% endwith %}
+    </p>
+  </div>
 
 {% endblock %}