Fix missing bootstrap context label on flags changelog entries #27

Merged
heinzel merged 1 commits from heinzel into master 2020-11-03 14:55:30 +01:00

View File

@@ -96,13 +96,13 @@ def render_event_changelog(event):
icon = u'flag'
status = get_or_create_event_status(change.content)
content_html = format_html(raise_flag_templ,
bcontext=status.bootstrap_context,
bcontext=status.bootstrap_context or u'default',
label=status.label)
elif change.operation == EventChange.LOWER_FLAG:
icon = u'flag'
status = get_or_create_event_status(change.content)
content_html = format_html(lower_flag_templ,
bcontext=status.bootstrap_context,
bcontext=status.bootstrap_context or u'default',
label=status.label)
else:
icon = u'question-sign'