Implement Web Assets' theme system and selection, and add 'light' theme #118
@ -50,6 +50,7 @@ class ApprovalQueueView(ListView):
|
||||
'extension': extension,
|
||||
'last_activity': None,
|
||||
'last_type_display': None,
|
||||
'type': None,
|
||||
}
|
||||
by_extension[extension] = stats
|
||||
by_date_created.append(stats)
|
||||
@ -61,7 +62,8 @@ class ApprovalQueueView(ListView):
|
||||
stats['type'] = item.type
|
||||
groupped_by_type = defaultdict(list)
|
||||
for stats in by_date_created:
|
||||
groupped_by_type[stats['type']].append(stats)
|
||||
type = stats['type'] or ApprovalActivity.ActivityType.AWAITING_REVIEW
|
||||
groupped_by_type[type].append(stats)
|
||||
result = []
|
||||
for type in STATUS_CHANGE_TYPES:
|
||||
result.extend(groupped_by_type[type])
|
||||
|
Loading…
Reference in New Issue
Block a user