# HG changeset patch # User Mads Kiilerich # Date 1508625732 -7200 # Node ID 9491eb545fef8c2de1387b4e9816d35025d8bba1 # Parent b16dac5c97e60697e291fdbeda1c343934cdafbb styling: map pylonslib flash message categories to bootstrap alert classes Error messages where shown without styling because they use the alert-error class which doesn't exist in Bootstrap. Pylonslib only support a few hardcoded categories. Map them to corresponding Bootstrap classes. diff -r b16dac5c97e6 -r 9491eb545fef kallithea/templates/base/flash_msg.html --- a/kallithea/templates/base/flash_msg.html Mon Oct 16 03:19:31 2017 +0200 +++ b/kallithea/templates/base/flash_msg.html Sun Oct 22 00:42:12 2017 +0200 @@ -1,8 +1,9 @@
<% messages = h.flash.pop_messages() %> % if messages: + <% alert_categories = {'warning': 'alert-warning', 'notice': 'alert-info', 'error': 'alert-danger', 'success': 'alert-success'} %> % for message in messages: -
+