From 3e961e2ae9b7fec5b9361ab827e8d0c9751d0989 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 17 Aug 2026 19:31:31 -0400 Subject: [PATCH] added option to hide past weeks --- app/views/common/_calendar.html.erb | 51 ++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 8 deletions(-) diff --git a/app/views/common/_calendar.html.erb b/app/views/common/_calendar.html.erb index 8229a3a..704f865 100644 --- a/app/views/common/_calendar.html.erb +++ b/app/views/common/_calendar.html.erb @@ -1,6 +1,7 @@ <% - # Check if toggle is active via query params + # Check if toggles are active via query params only_appointments = params[:only_appointments] == '1' + hide_past_weeks = params[:hide_past_weeks] == '1' # Get Redmine's configured non-working week days (e.g., ["6", "7"] for Sat/Sun) non_working_days = Setting.non_working_week_days || [] @@ -64,7 +65,16 @@ <% end %> -
+
+ +