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 %>