+ {% block bottom_row %}
@@ -51,6 +54,7 @@ body {
{% endif %}
+ {% endblock bottom_row %}
diff --git a/froide_govplan/templates/froide_govplan/section.html b/froide_govplan/templates/froide_govplan/section.html
index 625ed67..f19254e 100644
--- a/froide_govplan/templates/froide_govplan/section.html
+++ b/froide_govplan/templates/froide_govplan/section.html
@@ -5,9 +5,18 @@
{% load cms_tags %}
{% load follow_tags %}
{% load thumbnail %}
+{% load fds_ogimage %}
{% block title %}{{ object.title }}{% endblock %}
+{% block meta %}
+ {% include "snippets/meta.html" %}
+
+ {% url 'govplan:section_og' gov=object.government.slug section=object.slug as section_og_path %}
+ {% ogimage_url path=section_og_path template="froide_govplan/section_og.html" as og_image_url %}
+ {% include "fds_cms/social_meta.html" with object=object title=object.title description=object.description image_url=og_image_url %}
+{% endblock %}
+
{% block govplan_breadcrumbs %}
{{ object.title }}
diff --git a/froide_govplan/templates/froide_govplan/section_og.html b/froide_govplan/templates/froide_govplan/section_og.html
new file mode 100644
index 0000000..a47a43d
--- /dev/null
+++ b/froide_govplan/templates/froide_govplan/section_og.html
@@ -0,0 +1,18 @@
+{% extends "froide_govplan/plan_og.html" %}
+
+{% load govplan %}
+
+{% block tagline %}Themenbereich {{ object.title }}{% endblock %}
+
+{% block bottom_row %}
+ {% get_plan_progress plans as progress %}
+
+
+ {% for section in progress.sections %}
+
+
+ {% endfor %}
+
+
+
+{% endblock %}
diff --git a/froide_govplan/templatetags/govplan.py b/froide_govplan/templatetags/govplan.py
index 72b51be..d013217 100644
--- a/froide_govplan/templatetags/govplan.py
+++ b/froide_govplan/templatetags/govplan.py
@@ -27,6 +27,7 @@ def get_plan_progress(object_list):
sections.append(
{
"count": status_count,
+ "name": str(value),
"label": label,
"css_class": STATUS_CSS[value],
"percentage": round(percentage),
diff --git a/froide_govplan/urls.py b/froide_govplan/urls.py
index 163e426..b25a56f 100644
--- a/froide_govplan/urls.py
+++ b/froide_govplan/urls.py
@@ -5,6 +5,7 @@ from .views import (
GovPlanDetailOGView,
GovPlanDetailView,
GovPlanProposeUpdateView,
+ GovPlanSectionDetailOGView,
GovPlanSectionDetailView,
search,
)
@@ -33,4 +34,9 @@ urlpatterns = [
GovPlanSectionDetailView.as_view(),
name="section",
),
+ path(
+ pgettext_lazy("url part", "//_og/"),
+ GovPlanSectionDetailOGView.as_view(),
+ name="section_og",
+ ),
]
diff --git a/froide_govplan/views.py b/froide_govplan/views.py
index a64ef05..ee63db3 100644
--- a/froide_govplan/views.py
+++ b/froide_govplan/views.py
@@ -37,6 +37,10 @@ class GovPlanSectionDetailView(GovernmentMixin, DetailView):
return context
+class GovPlanSectionDetailOGView(GovPlanSectionDetailView):
+ template_name = "froide_govplan/section_og.html"
+
+
class GovPlanDetailView(GovernmentMixin, DetailView):
slug_url_kwarg = "plan"
template_name = "froide_govplan/detail.html"