feat: add 'membership-rallly' template and enhance matching
All checks were successful
Build and Deploy Static Site (Pride Theme) / build (push) Successful in 55s
Build and Deploy Static Site / build (push) Successful in 56s

Expanded the template matching condition to support templates starting with "membership". Added a new 'membership-rallly' template that extends the base 'membership' template, providing information about the Rallly Pro benefit for logged-in users and encouraging community support through donations.

This change improves the flexibility of template handling and introduces a specialized membership page aimed at enhancing user experience and engagement.
This commit is contained in:
Kumi 2024-09-24 14:43:17 +02:00
parent 3e1b33c700
commit 250daddcc6
Signed by: kumi
GPG key ID: ECBCC9082395383F
3 changed files with 15 additions and 1 deletions

View file

@ -106,7 +106,7 @@ def generate_static_site(development_mode=False, theme="plain"):
if template_name == "bridges": if template_name == "bridges":
context.update({"bridges": bridges}) context.update({"bridges": bridges})
if template_name == "membership": if template_name.startswith("membership"):
allow_current = development_mode allow_current = development_mode
finances_month, finances_year = get_latest_month(finances, allow_current) finances_month, finances_year = get_latest_month(finances, allow_current)
finances_period = datetime.date(finances_year, finances_month, 1) finances_period = datetime.date(finances_year, finances_month, 1)

View file

@ -0,0 +1,11 @@
{% extends "membership.html" %}
{% block serviceinfo %}
<div class="alert alert-info">
<p>
<strong>Welcome to Private.coffee!</strong> Rallly Pro is free for all logged-in users. Upon first login, it may take up to five minutes for your account to be upgraded. If you have any issues, please contact us at <a href="mailto:support@private.coffee">support@private.coffee</a>
</p>
<p>
If you find our services useful, please consider supporting us through a donation or becoming a supporting member. This will help us keep our free services running and improve our offerings. See below for more information.
</p>
</div>
{% endblock %}

View file

@ -11,6 +11,9 @@
</p> </p>
</div> </div>
{% block serviceinfo %}
{% endblock %}
<div class="row"> <div class="row">
<div class="col-md-4 mb-4"> <div class="col-md-4 mb-4">
<div class="card shadow-sm"> <div class="card shadow-sm">