From ac33a5e6b2bdcf43c7e318642151efb5bce9af24 Mon Sep 17 00:00:00 2001 From: TitouanDor Date: Tue, 24 Mar 2026 14:32:30 +0100 Subject: [PATCH] run pre-commit --- eboutic/templates/eboutic/eboutic_main.jinja | 16 +++++------ .../templates/eboutic/eurock_fragment.jinja | 28 +++++++++---------- eboutic/views.py | 5 ++-- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/eboutic/templates/eboutic/eboutic_main.jinja b/eboutic/templates/eboutic/eboutic_main.jinja index 43d95738..9ac4042c 100644 --- a/eboutic/templates/eboutic/eboutic_main.jinja +++ b/eboutic/templates/eboutic/eboutic_main.jinja @@ -121,14 +121,14 @@

{% trans %}Eurockéennes 2025 partnership{% endtrans %}

{% if user.is_subscribed %}
+ min-height: 600px; + background-color: lightgrey; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + gap: 10px; + ">

{% trans trimmed %} Our partner uses Weezevent to sell tickets. diff --git a/eboutic/templates/eboutic/eurock_fragment.jinja b/eboutic/templates/eboutic/eurock_fragment.jinja index cf75f847..605202cf 100644 --- a/eboutic/templates/eboutic/eurock_fragment.jinja +++ b/eboutic/templates/eboutic/eurock_fragment.jinja @@ -1,16 +1,16 @@ - + Billetterie Weezevent - + \ No newline at end of file diff --git a/eboutic/views.py b/eboutic/views.py index 3ac02946..79660eb5 100644 --- a/eboutic/views.py +++ b/eboutic/views.py @@ -42,7 +42,7 @@ from django.shortcuts import redirect, render from django.urls import reverse from django.utils.translation import gettext_lazy as _ from django.views.decorators.http import require_GET -from django.views.generic import DetailView, FormView, UpdateView, View, TemplateView +from django.views.generic import DetailView, FormView, TemplateView, UpdateView, View from django.views.generic.edit import SingleObjectMixin from django_countries.fields import Country @@ -351,5 +351,6 @@ class EtransactionAutoAnswer(View): "Payment failed with error: " + request.GET["Error"], status=202 ) + class EurockPartnerFragment(IsSubscriberMixin, TemplateView): - template_name = "eboutic/eurock_fragment.jinja" \ No newline at end of file + template_name = "eboutic/eurock_fragment.jinja"