From 838f1ae1bc794ffdde9c7a8dd6e97d8bd10df7a4 Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 10 Feb 2026 11:09:37 +0000 Subject: [PATCH] fix: calendar nav settings cog, header padding, post nav admin link - Calendar nav: fix Slots link URL, add admin cog for admins - Calendar header: add left padding to calendar name - Post nav: add settings cog linking to blog admin Co-Authored-By: Claude Opus 4.6 --- templates/_types/calendar/_nav.html | 3 +++ templates/_types/calendar/header/_header.html | 2 +- templates/_types/post/_nav.html | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/_types/calendar/_nav.html b/templates/_types/calendar/_nav.html index 3c1404a..d3ef2cd 100644 --- a/templates/_types/calendar/_nav.html +++ b/templates/_types/calendar/_nav.html @@ -1,8 +1,10 @@ {% import 'macros/links.html' as links %} {% call links.link( + url_for('calendars.calendar.slots.get', calendar_slug=calendar.slug), hx_select_search, select_colours, + True, aclass=styles.nav_button ) %} @@ -12,4 +14,5 @@ {% endcall %} {% if g.rights.admin %} {% from 'macros/admin_nav.html' import admin_nav_item %} + {{ admin_nav_item(url_for('calendars.calendar.admin.admin', calendar_slug=calendar.slug)) }} {% endif %} \ No newline at end of file diff --git a/templates/_types/calendar/header/_header.html b/templates/_types/calendar/header/_header.html index a431382..9298a6a 100644 --- a/templates/_types/calendar/header/_header.html +++ b/templates/_types/calendar/header/_header.html @@ -1,7 +1,7 @@ {% import 'macros/links.html' as links %} {% macro header_row(oob=False) %} {% call links.menu_row(id='calendar-row', oob=oob) %} -
+
diff --git a/templates/_types/post/_nav.html b/templates/_types/post/_nav.html index fe1f60e..9bcdf07 100644 --- a/templates/_types/post/_nav.html +++ b/templates/_types/post/_nav.html @@ -7,3 +7,8 @@ {% endcall %} {% endfor %} {% endif %} +{% if g.rights.admin %} + + + +{% endif %}