feat: add 'membership-rallly' template and enhance matching
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:
parent
3e1b33c700
commit
250daddcc6
3 changed files with 15 additions and 1 deletions
2
main.py
2
main.py
|
@ -106,7 +106,7 @@ def generate_static_site(development_mode=False, theme="plain"):
|
|||
if template_name == "bridges":
|
||||
context.update({"bridges": bridges})
|
||||
|
||||
if template_name == "membership":
|
||||
if template_name.startswith("membership"):
|
||||
allow_current = development_mode
|
||||
finances_month, finances_year = get_latest_month(finances, allow_current)
|
||||
finances_period = datetime.date(finances_year, finances_month, 1)
|
||||
|
|
11
templates/membership-rallly.html
Normal file
11
templates/membership-rallly.html
Normal 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 %}
|
|
@ -11,6 +11,9 @@
|
|||
</p>
|
||||
</div>
|
||||
|
||||
{% block serviceinfo %}
|
||||
{% endblock %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4 mb-4">
|
||||
<div class="card shadow-sm">
|
||||
|
|
Loading…
Reference in a new issue