From a6d8417bb9098a2ba8ae5bf6a9b77000f703e276 Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Thu, 31 Oct 2024 14:41:14 +0000 Subject: [PATCH] Boton de publicar --- JugarAlPadel/K8S/Makefile | 2 +- JugarAlPadel/K8S/Makefile.local | 2 +- JugarAlPadel/gestion_reservas/templates/base.html | 10 +++++----- .../templates/eventos/detalle_evento.html | 2 +- .../templates/eventos/lista_eventos.html | 10 ++++++++-- 5 files changed, 16 insertions(+), 10 deletions(-) diff --git a/JugarAlPadel/K8S/Makefile b/JugarAlPadel/K8S/Makefile index 092f5b7..20a498b 100644 --- a/JugarAlPadel/K8S/Makefile +++ b/JugarAlPadel/K8S/Makefile @@ -2,7 +2,7 @@ export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':') #export REGISTRY=localhost:5000 export REGISTRY=registry.reymota.es -export IMG_VERSION = 0.26 +export IMG_VERSION = 0.27 export IMG_NGINX_VERSION = 2.3 # limpia todo diff --git a/JugarAlPadel/K8S/Makefile.local b/JugarAlPadel/K8S/Makefile.local index 1557f32..9c3d1b3 100644 --- a/JugarAlPadel/K8S/Makefile.local +++ b/JugarAlPadel/K8S/Makefile.local @@ -2,7 +2,7 @@ export ARQUITECTURA := $(shell lscpu |grep itectur | tr -d ' '| cut -f2 -d':') export REGISTRY=localhost:30500 #export REGISTRY=registry.reymota.es -export IMG_VERSION = 0.84 +export IMG_VERSION = 0.89 export IMG_NGINX_VERSION = 2.4 # limpia todo diff --git a/JugarAlPadel/gestion_reservas/templates/base.html b/JugarAlPadel/gestion_reservas/templates/base.html index 89e6091..06eff31 100644 --- a/JugarAlPadel/gestion_reservas/templates/base.html +++ b/JugarAlPadel/gestion_reservas/templates/base.html @@ -91,7 +91,7 @@ +
{% if not evento.inscrito %} {% if evento.plazas_restantes > 0 %} - Reservar + {% else %} {% if not evento.en_espera %} - Lista de espera + {% else %}

Ya estás en la lista de espera.

{% endif %} @@ -70,6 +71,11 @@ {% else %}

Estás dentro.

{% endif %} + + {% if user.is_staff and not evento.evento.publicado %} + + {% endif %} +