From ad1b1e1c6b8baf0a8f589fc64bac810b15ec64fd Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Thu, 8 Jan 2026 17:46:51 +0100 Subject: [PATCH] add month to tracker --- app/assets/stylesheets/kluk.css | 4 ++-- app/views/moods/index.html.erb | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/kluk.css b/app/assets/stylesheets/kluk.css index 932895d..e064855 100644 --- a/app/assets/stylesheets/kluk.css +++ b/app/assets/stylesheets/kluk.css @@ -70,8 +70,8 @@ main { .day { border: 1px; margin: 4px; - min-width: 15px; - min-height: 15px; + width: 15px; + height: 15px; } .creatif { diff --git a/app/views/moods/index.html.erb b/app/views/moods/index.html.erb index 23efccd..b8a9f15 100644 --- a/app/views/moods/index.html.erb +++ b/app/views/moods/index.html.erb @@ -41,7 +41,14 @@
<% @mood_log.each do |week| %>
+
+ <% day = Date.parse(week.first[0]) %> + <% if day.day < 8 && day.monday? %> + <%= l(day, format: "%b") %> + <% end %> +
<% week.each do |d| %> + <% day = Date.parse(d[0]) %> <% if d[1] %>
" data-mode="<%= d[1] %>" data-day="<%= d[0] %>" data-action="click->mood#updateDayInfo mouseover->mood#updateDayInfo mouseleave->mood#updateDayInfo" title="<%= d[0] %> : <%= d[1] %>" class="day <%= d[1] %>">
<% else %>