Remove OG views
Moved to hosting project
This commit is contained in:
parent
2505abd66f
commit
dfd39bf920
6 changed files with 0 additions and 115 deletions
|
|
@ -5,7 +5,6 @@
|
||||||
{% load cms_tags %}
|
{% load cms_tags %}
|
||||||
{% load follow_tags %}
|
{% load follow_tags %}
|
||||||
{% load govplan %}
|
{% load govplan %}
|
||||||
{% load fds_ogimage %}
|
|
||||||
{% load form_helper %}
|
{% load form_helper %}
|
||||||
{% load content_helper %}
|
{% load content_helper %}
|
||||||
{% load thumbnail %}
|
{% load thumbnail %}
|
||||||
|
|
@ -14,10 +13,6 @@
|
||||||
|
|
||||||
{% block meta %}
|
{% block meta %}
|
||||||
{% include "snippets/meta.html" %}
|
{% include "snippets/meta.html" %}
|
||||||
|
|
||||||
{% url 'govplan:plan_og' gov=object.government.slug plan=object.slug as plan_og_path %}
|
|
||||||
{% ogimage_url path=plan_og_path template="froide_govplan/plan_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 %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block govplan_breadcrumbs %}
|
{% block govplan_breadcrumbs %}
|
||||||
|
|
|
||||||
|
|
@ -1,67 +0,0 @@
|
||||||
{% extends "fds_ogimage/base.html" %}
|
|
||||||
|
|
||||||
{% load humanize %}
|
|
||||||
|
|
||||||
{% block title %}{{ object.title }}{% endblock %}
|
|
||||||
|
|
||||||
{% block extra_style %}
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
background-image: url('https://media.frag-den-staat.de/files/media/main/d5/0b/d50be174-0cd1-4a35-97e4-2d7747db8404/temp-lineart.jpg');
|
|
||||||
background-size: cover;
|
|
||||||
background-position: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg-translucent {
|
|
||||||
background: rgba(255,255,255,0.9);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block body %}
|
|
||||||
<div class="og-container d-flex flex-column min-h-screen">
|
|
||||||
<div class="p-5">
|
|
||||||
<img class="img-fluid col-5 px-0" src="https://media.frag-den-staat.de/files/media/main/98/91/98919aa3-9200-4f99-a7c7-de25cda8675a/logo-koalitionstracker-w.svg" alt="Koalitionstracker">
|
|
||||||
</div>
|
|
||||||
<div class="d-flex flex-column flex-grow-1 bg-translucent">
|
|
||||||
<div class="p-5 d-flex align-items-center flex-1 h-100">
|
|
||||||
<h3>
|
|
||||||
{% block tagline %}
|
|
||||||
{{ object.title|truncatechars:100 }}
|
|
||||||
{% endblock %}
|
|
||||||
</h3>
|
|
||||||
</div>
|
|
||||||
<div class="pb-5 px-5 mt-auto">
|
|
||||||
<div class="row justify-content-between align-items-center">
|
|
||||||
{% block bottom_row %}
|
|
||||||
<div class="col-4">
|
|
||||||
<div class="badge text-bg-{{ object.get_status_css }} p-3 d-inline-flex">
|
|
||||||
<i class="fa fa-circle me-3"></i>
|
|
||||||
<span class="h2 m-0">
|
|
||||||
{{ object.get_status_display }}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-4">
|
|
||||||
{% if object.due_date %}
|
|
||||||
<div class="d-flex {% if object.is_overdue %}text-danger{% endif %}">
|
|
||||||
<div class="flex-shrink-0">
|
|
||||||
<span class="fa fa-calendar"></span>
|
|
||||||
</div>
|
|
||||||
<div class="flex-grow-1 ms-3">
|
|
||||||
<h2 class="m-0">
|
|
||||||
{{ object.due_date | date }}
|
|
||||||
</h2>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
{% endblock bottom_row %}
|
|
||||||
<div class="col-auto ms-auto">
|
|
||||||
<img height="80" src="https://static.frag-den-staat.de/static/img/header_logo.580ed694906e.svg" alt="FragDenStaat.de"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
@ -5,16 +5,11 @@
|
||||||
{% load cms_tags %}
|
{% load cms_tags %}
|
||||||
{% load follow_tags %}
|
{% load follow_tags %}
|
||||||
{% load thumbnail %}
|
{% load thumbnail %}
|
||||||
{% load fds_ogimage %}
|
|
||||||
|
|
||||||
{% block title %}{{ object.title }}{% endblock %}
|
{% block title %}{{ object.title }}{% endblock %}
|
||||||
|
|
||||||
{% block meta %}
|
{% block meta %}
|
||||||
{% include "snippets/meta.html" %}
|
{% 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 %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block govplan_breadcrumbs %}
|
{% block govplan_breadcrumbs %}
|
||||||
|
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
{% extends "froide_govplan/plan_og.html" %}
|
|
||||||
|
|
||||||
{% load govplan %}
|
|
||||||
|
|
||||||
{% block tagline %}Themenbereich {{ object.title }}{% endblock %}
|
|
||||||
|
|
||||||
{% block bottom_row %}
|
|
||||||
{% get_plan_progress plans as progress %}
|
|
||||||
<div class="col-7">
|
|
||||||
<div class="progress bg-white" style="height: 60px;">
|
|
||||||
{% for section in progress.sections %}
|
|
||||||
<div class="progress-bar {% if section.name == 'not_started' %}progress-bar-striped bg-secondary{% else %}bg-dark{% endif %}" role="progressbar" style="width: {{ section.css_percentage }}%;" aria-valuenow="{{ section.css_percentage }}" aria-valuemin="0" aria-valuemax="100">
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-1"></div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
@ -2,10 +2,8 @@ from django.urls import path
|
||||||
from django.utils.translation import pgettext_lazy
|
from django.utils.translation import pgettext_lazy
|
||||||
|
|
||||||
from .views import (
|
from .views import (
|
||||||
GovPlanDetailOGView,
|
|
||||||
GovPlanDetailView,
|
GovPlanDetailView,
|
||||||
GovPlanProposeUpdateView,
|
GovPlanProposeUpdateView,
|
||||||
GovPlanSectionDetailOGView,
|
|
||||||
GovPlanSectionDetailView,
|
GovPlanSectionDetailView,
|
||||||
search,
|
search,
|
||||||
)
|
)
|
||||||
|
|
@ -19,11 +17,6 @@ urlpatterns = [
|
||||||
GovPlanDetailView.as_view(),
|
GovPlanDetailView.as_view(),
|
||||||
name="plan",
|
name="plan",
|
||||||
),
|
),
|
||||||
path(
|
|
||||||
pgettext_lazy("url part", "<slug:gov>/plan/<slug:plan>/_og/"),
|
|
||||||
GovPlanDetailOGView.as_view(),
|
|
||||||
name="plan_og",
|
|
||||||
),
|
|
||||||
path(
|
path(
|
||||||
pgettext_lazy("url part", "<slug:gov>/plan/<slug:plan>/propose-update/"),
|
pgettext_lazy("url part", "<slug:gov>/plan/<slug:plan>/propose-update/"),
|
||||||
GovPlanProposeUpdateView.as_view(),
|
GovPlanProposeUpdateView.as_view(),
|
||||||
|
|
@ -34,9 +27,4 @@ urlpatterns = [
|
||||||
GovPlanSectionDetailView.as_view(),
|
GovPlanSectionDetailView.as_view(),
|
||||||
name="section",
|
name="section",
|
||||||
),
|
),
|
||||||
path(
|
|
||||||
pgettext_lazy("url part", "<slug:gov>/<slug:section>/_og/"),
|
|
||||||
GovPlanSectionDetailOGView.as_view(),
|
|
||||||
name="section_og",
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -39,10 +39,6 @@ class GovPlanSectionDetailView(GovernmentMixin, DetailView):
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
class GovPlanSectionDetailOGView(GovPlanSectionDetailView):
|
|
||||||
template_name = "froide_govplan/section_og.html"
|
|
||||||
|
|
||||||
|
|
||||||
class GovPlanDetailView(GovernmentMixin, DetailView):
|
class GovPlanDetailView(GovernmentMixin, DetailView):
|
||||||
slug_url_kwarg = "plan"
|
slug_url_kwarg = "plan"
|
||||||
template_name = "froide_govplan/detail.html"
|
template_name = "froide_govplan/detail.html"
|
||||||
|
|
@ -68,10 +64,6 @@ class GovPlanDetailView(GovernmentMixin, DetailView):
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
class GovPlanDetailOGView(GovPlanDetailView):
|
|
||||||
template_name = "froide_govplan/plan_og.html"
|
|
||||||
|
|
||||||
|
|
||||||
class GovPlanProposeUpdateView(GovernmentMixin, LoginRequiredMixin, UpdateView):
|
class GovPlanProposeUpdateView(GovernmentMixin, LoginRequiredMixin, UpdateView):
|
||||||
slug_url_kwarg = "plan"
|
slug_url_kwarg = "plan"
|
||||||
form_class = GovernmentPlanUpdateProposalForm
|
form_class = GovernmentPlanUpdateProposalForm
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue