Weekday in appointment header; monthly totals on the calendar

- Appointment view: show the day of the week on the start and end dates, and lay
  the header out as a flex row so it no longer wraps under the action links
- Calendar: month total of estimated hours and appointments in the toolbar,
  counting only the shown month's days (hidden past weeks included)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rickyandClaude Opus 5.5 committed 2026-11-09 19:54:44 -05:00
1 parent 82d8d13a27
commit 3ebe3505ca
4 files changed
+68 -10

No files matched your search

+10 -8
View File
@@ -33,7 +33,7 @@
<% end %>
</div>
<h2>
<h2 class="appointment-header">
<% if @appointment.date %>
<div class="calendar-badge">
<div class="month"><%= @appointment.date.strftime('%b').upcase %></div>
@@ -41,16 +41,18 @@
</div>
<% end %>
<span class="appointment-title"><%= @appointment.subject %></span>
<div class="appointment-heading">
<span class="appointment-title"><%= @appointment.subject %></span>
<span class="appointment-dates">
<% if @appointment.date %>
(<%= format_date(@appointment.date) %> <%= l(:label_at, default: 'at') %> <%= @appointment.date.strftime('%I:%M %p') %>
<% if @appointment.respond_to?(:due_date) && @appointment.due_date.present? && @appointment.duration.to_i > 1 %>
- <%= format_date(@appointment.due_date) %>
<% end %>)
<span class="appointment-dates">
<span class="appointment-date"><%= day_name(@appointment.date.wday) %>, <%= format_date(@appointment.date) %> <%= l(:label_at, default: 'at') %> <%= @appointment.date.strftime('%I:%M %p') %></span>
<% if @appointment.respond_to?(:due_date) && @appointment.due_date.present? && @appointment.duration.to_i > 1 %>
&ndash; <span class="appointment-date"><%= day_name(@appointment.due_date.wday) %>, <%= format_date(@appointment.due_date) %></span>
<% end %>
</span>
<% end %>
</span>
</div>
</h2>
<%# Quick status buttons; call-outs have no status %>