work on main design & layout

This commit is contained in:
bkfox
2024-01-26 21:55:43 +01:00
parent 0adcacf375
commit 25ceacdff9
25 changed files with 713 additions and 532 deletions

View File

@ -50,6 +50,6 @@ class TimeTableView(GetDateMixin, BaseDiffusionListView):
if object_list is None:
logs = self.get_logs(self.date)
object_list = Log.merge_diffusions(logs, self.object_list)
object_list = Log.merge_diffusions(logs, self.object_list, group_logs=True)
object_list = list(reversed(object_list))
return super().get_context_data(date=self.date, dates=dates, object_list=object_list, **kwargs)

View File

@ -32,7 +32,7 @@ class HomeView(AttachedToMixin, BaseView, ListView):
logs = logs.after(min_date)
else:
logs = logs.date(today)
return Log.merge_diffusions(logs, object_list, diff_count=self.related_count)
return Log.merge_diffusions(logs, object_list, diff_count=self.related_count, group_logs=True)
def get_next_diffs(self):
now = tz.now()