From 25fbe3d3524133b1dcc8a6ca53d9c0c19a834da7 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 5 May 2024 22:59:09 -0400 Subject: [PATCH] membershipworks: Add breadcrumbs for "my events" and event details page --- .../components/event_breadcrumbs.dj.html | 15 +++++++++++++++ .../membershipworks/event_detail.dj.html | 4 ++++ .../membershipworks/user_event_list.dj.html | 1 + 3 files changed, 20 insertions(+) create mode 100644 membershipworks/templates/membershipworks/components/event_breadcrumbs.dj.html diff --git a/membershipworks/templates/membershipworks/components/event_breadcrumbs.dj.html b/membershipworks/templates/membershipworks/components/event_breadcrumbs.dj.html new file mode 100644 index 0000000..282e06a --- /dev/null +++ b/membershipworks/templates/membershipworks/components/event_breadcrumbs.dj.html @@ -0,0 +1,15 @@ +{% if perms.membershipworks.view_eventext %} + + + +{% else %} + +{% endif %} diff --git a/membershipworks/templates/membershipworks/event_detail.dj.html b/membershipworks/templates/membershipworks/event_detail.dj.html index bcfc7bd..b51e546 100644 --- a/membershipworks/templates/membershipworks/event_detail.dj.html +++ b/membershipworks/templates/membershipworks/event_detail.dj.html @@ -7,6 +7,10 @@ {% block admin_link %} {% url 'admin:membershipworks_eventext_change' event.pk %} {% endblock %} +{% block breadcrumbs %} + {% include "./components/event_breadcrumbs.dj.html" %} + +{% endblock %} {% block content %}
{% include "membershipworks/event_invoice.dj.html" %} diff --git a/membershipworks/templates/membershipworks/user_event_list.dj.html b/membershipworks/templates/membershipworks/user_event_list.dj.html index 3d6f09c..0a47b90 100644 --- a/membershipworks/templates/membershipworks/user_event_list.dj.html +++ b/membershipworks/templates/membershipworks/user_event_list.dj.html @@ -3,6 +3,7 @@ {% load render_table from django_tables2 %} {% block title %}My Events{% endblock %} +{% block breadcrumbs %}{% endblock %} {% block content %} {% include "cmsmanage/components/download_table.dj.html" %}