feat: polish mobile ui and admin quick task settings
This commit is contained in:
@@ -193,6 +193,11 @@ def calendar_view():
|
||||
for task in tasks:
|
||||
tasks_by_day[task.due_date.day].append(task)
|
||||
|
||||
mobile_day_groups = [
|
||||
{"day": day, "tasks": grouped_tasks}
|
||||
for day, grouped_tasks in sorted(tasks_by_day.items(), key=lambda item: item[0])
|
||||
]
|
||||
|
||||
month_calendar = calendar.Calendar(firstweekday=0).monthdayscalendar(year, month)
|
||||
return render_template(
|
||||
"tasks/calendar.html",
|
||||
@@ -201,6 +206,7 @@ def calendar_view():
|
||||
current_label=month_label(year, month),
|
||||
month_calendar=month_calendar,
|
||||
tasks_by_day=tasks_by_day,
|
||||
mobile_day_groups=mobile_day_groups,
|
||||
view=view,
|
||||
tasks=tasks,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user