diff --git a/README.md b/README.md index 861d06b..fb0bc7e 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ # Notes / Bugfixes ## Frontend - [] add UI for `trip_type` +- [] support esc to close sidebar +- [] FAQ page ## Backend - [] Guests should only be allowed to register at certain trips @@ -13,7 +15,6 @@ - [] add `always_show` to `planned_trips` (e.g. for wanderfahrten) - [] `planned_events` -> ICS feed to be [integrated](https://icscalendar.com/shortcode-overview/) in homepage calendar - # Nice to have ## Frontend - [] my trips for cox diff --git a/templates/index.html.tera b/templates/index.html.tera index 36cb1d5..c7cfc1e 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -139,15 +139,16 @@
- {% if trip.max_people == 0 %}{% endif %}{{ trip.planned_starting_time }} Uhr - {% if trip.max_people == 0 %} - (Absage {{ trip.cox_name }}) - {% else %} - ({{ trip.cox_name }}) - {% endif %} -
+ {% if trip.max_people == 0 %} + ⚠ {{ trip.planned_starting_time }} Uhr + (Absage {{ trip.cox_name }}) + {% else %} + {{ trip.planned_starting_time }} Uhr + ({{ trip.cox_name }}) + {% endif %} +
Details @@ -251,7 +252,13 @@
{% include "dynamics/sidebar" %} -{% include "forms/trip" %} -{% include "forms/event" %} + +{% if loggedin_user.is_cox %} + {% include "forms/trip" %} +{% endif %} + +{% if loggedin_user.is_admin %} + {% include "forms/event" %} +{% endif %} {% endblock content %}