Fix missing bootstrap context label on flags changelog entries
All checks were successful
buildbot/tox Build done.

This commit is contained in:
2020-11-03 14:46:21 +01:00
parent 77d18a145a
commit fbcb8e5f4e

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'