Skip to content

Commit b772e5c

Browse files
authored
Merge pull request #21 from simcax/fix/url-to-activities
Fix/url to activities
2 parents baa4ef1 + ad934fe commit b772e5c

File tree

7 files changed

+53
-323
lines changed

7 files changed

+53
-323
lines changed

fly.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dockerfile = "docker/Dockerfile"
1616
API_VERSION = "version=1"
1717
API_MEMBERS_API = "members"
1818
API_ACTIVITIES_API = "activities"
19+
ACTIVITY_LIST_URL = "https://activities.lejre.fitness/activity_list"
1920

2021
[http_service]
2122
internal_port = 8000

lfweb/main/routes.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,14 @@ def memberships():
3333
Renders the memberships page
3434
"""
3535
memberdata = Memberdata()
36-
return render_template("snippets/membership_test.html", memberdata=memberdata)
36+
activity_list_url = os.environ.get("ACTIVITY_LIST_URL")
37+
if activity_list_url is None:
38+
logger.warning("ACTIVITY_LIST_URL not set in environment variables")
39+
return render_template(
40+
"snippets/membership.html",
41+
memberdata=memberdata,
42+
activity_list_url=activity_list_url,
43+
)
3744

3845

3946
@frontpage_bp.route("/doorcount")

lfweb/templates/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ <h1>{% block title %}{% endblock %}</h1>
55

66
<div class="border-5 border-lime-300">
77
<div class="grow">
8-
{% include 'navbar_tw_test.html' %}
8+
{% include 'navbar.html' %}
99
</div>
1010
<div class="flex flex-col lg:flex-row w-full">
1111
<!-- Original three-panel layout -->

lfweb/templates/memberships.html

Lines changed: 0 additions & 163 deletions
This file was deleted.

0 commit comments

Comments
 (0)