Posted by jdlind38 on April 12, 2010 at 8:49pm
5 followers
| Project: | Office Hours |
| Version: | 7.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Is it possible to "roll-up" the hours if a the hours are the same? For example, if the hours are fixed Monday - Friday 8am - 5pm. Instead of print a row for each day, can it display "Mon - Fri. 8:00am - 5:00pm"?
Comments
#1
It's possible as a separate widget, not as the current widget. I do consider it, but there's lack of time on my behalf. If anyone submits a patch, I'll be happy to commit.
#2
Attached patch:
formatter: default
Sunday: ClosedMonday: 9:00 AM - 7:30 PM
Tuesday: 9:00 AM - 7:30 PM
Wednesday: 9:00 AM - 7:30 PM
Thursday: 9:00 AM - 7:30 PM
Friday: 9:00 AM - 7:30 PM
Saturday: 8:00 AM - 5:30 PM
formatter: grouped
Sun: ClosedMon - Fri: 9:00 AM - 7:30 PM
Sat: 8:00 AM - 5:30 PM
#3
re-roll: moved the ordered weekdays to the end so output is correct for any 'first day of the week'
#4
this re-roll removes dependency of group building on the 'first day of week'. Instead it indexes the groups on day name and then uses the properly ordered weekdays to output the groups.
#5
Cool. works as expected.
committed.
#6
@recrit This is exactly what I was hoping for. Thanks!
#7
Automatically closed -- issue fixed for 2 weeks with no activity.
#8
This feature is not yet in D7.
#9
I've ported recrit's patch to D7. I've added some additional CSS classes to help with applying different CSS to grouped hours.
#10
patch is heavily reworked and committed in f54fbb5
#11
Automatically closed -- issue fixed for 2 weeks with no activity.