Add context to banner button text

Needs flash messaging system changes.
This commit is contained in:
Tom Byers
2020-08-05 11:28:56 +01:00
parent 0933485995
commit f608d5e979
3 changed files with 8 additions and 6 deletions

View File

@@ -15,7 +15,8 @@
'default' if ((category == 'default') or (category == 'default_with_tick')) else 'dangerous',
delete_button=delete_button_text,
with_tick=True if category == 'default_with_tick' else False,
context=message[1] if message is not string
context=message[1] if message is not string,
thing=message[2] if message is not string and message[2]
)}}
</div>
{% endfor %}