Fix missing bootstrap context label on flags changelog entries #27
@@ -96,13 +96,13 @@ def render_event_changelog(event):
|
|||||||
icon = u'flag'
|
icon = u'flag'
|
||||||
status = get_or_create_event_status(change.content)
|
status = get_or_create_event_status(change.content)
|
||||||
content_html = format_html(raise_flag_templ,
|
content_html = format_html(raise_flag_templ,
|
||||||
bcontext=status.bootstrap_context,
|
bcontext=status.bootstrap_context or u'default',
|
||||||
label=status.label)
|
label=status.label)
|
||||||
elif change.operation == EventChange.LOWER_FLAG:
|
elif change.operation == EventChange.LOWER_FLAG:
|
||||||
icon = u'flag'
|
icon = u'flag'
|
||||||
status = get_or_create_event_status(change.content)
|
status = get_or_create_event_status(change.content)
|
||||||
content_html = format_html(lower_flag_templ,
|
content_html = format_html(lower_flag_templ,
|
||||||
bcontext=status.bootstrap_context,
|
bcontext=status.bootstrap_context or u'default',
|
||||||
label=status.label)
|
label=status.label)
|
||||||
else:
|
else:
|
||||||
icon = u'question-sign'
|
icon = u'question-sign'
|
||||||
|
|||||||
Reference in New Issue
Block a user