From 9384c78f42d42f0d56839154a4d2fe8b0f17f9ec Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 28 Apr 2023 19:33:56 +0200 Subject: [PATCH] change header message box sidebar --- templates/includes/macros.html.tera | 4 ++-- templates/index.html.tera | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/includes/macros.html.tera b/templates/includes/macros.html.tera index 3dacbc4..d3757b5 100644 --- a/templates/includes/macros.html.tera +++ b/templates/includes/macros.html.tera @@ -41,8 +41,8 @@ {% endmacro alert %} -{% macro box(participants, empty_seats, header='Ruderer können noch teilnehmen', text='Keine Ruderer angemeldet', bg='primary-600', color='white') %} -
{{ empty_seats }} {{ header }}
+{% macro box(participants, empty_seats, header='Freie Plätze:', text='Keine Ruderer angemeldet', bg='primary-600', color='white') %} +
{{ header }} {{ empty_seats }}
{% if participants | length > 0 %} {% for rower in participants %} diff --git a/templates/index.html.tera b/templates/index.html.tera index 4e0e0c6..a97e705 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -97,7 +97,7 @@ {# --- START List Coxes --- #} {% if planned_event.planned_amount_cox > 0 %} {% if amount_cox_missing > 0 %} - {{ macros::box(participants=planned_event.cox, empty_seats=planned_event.planned_amount_cox - amount_cur_cox, header='Steuerleute werden noch benötigt', text='Keine Steuerleute angemeldet') }} + {{ macros::box(participants=planned_event.cox, empty_seats=planned_event.planned_amount_cox - amount_cur_cox, header='Benötigte Steuerleute:', text='Keine Steuerleute angemeldet') }} {% else %} {{ macros::box(participants=planned_event.cox, empty_seats="", header='Genügend Steuerleute haben sich angemeldet :-)', text='Keine Steuerleute angemeldet') }} {% endif %}