From 725f813b05eb2da556f3e30251696038aabfec9e Mon Sep 17 00:00:00 2001 From: samaradel Date: Thu, 8 Sep 2022 10:57:39 +0200 Subject: [PATCH] Fix memberships --- templates/memberships/single.html | 86 ++++++++++++++++++++++++++++- templates/partials/filter_bar.html | 2 +- templates/partials/memberships.html | 1 + 3 files changed, 86 insertions(+), 3 deletions(-) diff --git a/templates/memberships/single.html b/templates/memberships/single.html index f9455234c..e357e75fb 100644 --- a/templates/memberships/single.html +++ b/templates/memberships/single.html @@ -1,6 +1,88 @@ {% extends "index.html" %} {% block content %} - - {% endblock content %} + +{% if not paginator %} + {% set paginator = section %} +{% endif %} + +{% set path_array = current_path | split(pat="/") %} +{% set taxonomy = path_array[1] %} +{% set category = path_array[2] %} +{% if path_array | length < 3%} +{% set category = "All" %} +{% endif %} + +
+ {% include "partials/filter_bar.html" %} +
+
+

+ {{category | replace(from='-', to=' ' ) | title}} +

+
+ {{ paginator.total_pages ~ " People"}} +
+
+ +
+ +
+
+ {%- for page in paginator.pages %} + {% include "partials/person_card.html" %} + {%- endfor %} +
+
+

+ {% if paginator.previous %} + {% include "partials/icons/svgPrevPageIcon.html" %}{% include + "partials/icons/svgPrevPageIcon.html" %} +           + {% include "partials/icons/svgPrevPageIcon.html" %} +           +           {% else %} {% + include "partials/icons/svgFirstPageIcon.html" %}{% include + "partials/icons/svgFirstPageIcon.html" %} +           {% include + "partials/icons/svgFirstPageIcon.html" %} +           +           {% endif %} {% if + paginator.next %} + {% include "partials/icons/svgNextPageIcon.html" %} +           + {% include "partials/icons/svgNextPageIcon.html" %}{% include + "partials/icons/svgNextPageIcon.html" %} + {% else %} {% include "partials/icons/svgLastPageIcon.html" %} +           {% include + "partials/icons/svgLastPageIcon.html" %}{% include + "partials/icons/svgLastPageIcon.html" %} {% endif %} +

+
+
+ +
+ +{% endblock content %} + diff --git a/templates/partials/filter_bar.html b/templates/partials/filter_bar.html index 57257e0f5..04e549cc0 100644 --- a/templates/partials/filter_bar.html +++ b/templates/partials/filter_bar.html @@ -20,7 +20,7 @@