Remove old version.
[wolnelektury.git] / src / club / templates / club / index.html
index fd36aad..7c6a207 100644 (file)
@@ -1,26 +1,28 @@
-{% extends "base/base.html" %}
+{% extends "2022/base_simple.html" %}
+{% load i18n %}
 {% load active_schedule from club %}
+{% load chunks %}
 
 
-{% block titleextra %}Towarzystwo Wolnych Lektur{% endblock %}
+{% block titleextra %}{% trans "Wolne Lektury need your help!" %}{% endblock %}
 
 
 {% block body %}
-<div class="white-box normal-text">
 
-       <h1>Towarzystwo Wolnych Lektur</h1>
-
-       <p>Towarzystwo jest fajne.</p>
-
-{% with schedule=request.user|active_schedule %}
-{% if schedule %}
-<p><a href="{{ schedule.get_absolute_url }}">Jesteś już w Towarzystwie</a>!</p>
-{% else %}
-<a href="{% url 'club_join' %}">Dołącz do Towarzystwa</a>.
-{% 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 %}