diff --git a/ckan/lib/helpers.py b/ckan/lib/helpers.py index d9ba3581479..118af87737f 100644 --- a/ckan/lib/helpers.py +++ b/ckan/lib/helpers.py @@ -146,10 +146,10 @@ def __html__(self): class _Flash(object): # List of allowed categories. If None, allow any category. - categories = ["warning", "notice", "error", "success"] + categories = ["", "alert-info", "alert-error", "alert-success"] # Default category if none is specified. - default_category = "notice" + default_category = "" def __init__(self, session_key="flash", categories=None, default_category=None): self.session_key = session_key @@ -195,13 +195,13 @@ def are_there_messages(self): _flash = _Flash() def flash_notice(message, allow_html=False): - _flash(message, category='notice', allow_html=allow_html) + _flash(message, category='alert-info', allow_html=allow_html) def flash_error(message, allow_html=False): - _flash(message, category='error', allow_html=allow_html) + _flash(message, category='alert-error', allow_html=allow_html) def flash_success(message, allow_html=False): - _flash(message, category='success', allow_html=allow_html) + _flash(message, category='alert-success', allow_html=allow_html) def are_there_flash_messages(): return _flash.are_there_messages() diff --git a/ckan/public/css/style.css b/ckan/public/css/style.css index bb7272d2896..e4c36d9c3b5 100644 --- a/ckan/public/css/style.css +++ b/ckan/public/css/style.css @@ -15,7 +15,7 @@ body.no-sidebar .content-outer { background-image: linear-gradient(top, #e2e2e2, #cccccc); filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#e2e2e2', EndColorStr='#cccccc'); - margin-bottom: 0px; + margin-bottom: 18px; -moz-box-shadow: 0px 2px 15px #dddddd; -webkit-box-shadow: 0px 2px 15px #dddddd; box-shadow: 0px 2px 15px #dddddd; @@ -1240,12 +1240,6 @@ body.package.read .resource-information { box-shadow: 1px 1px 3px #f7f7f7; color: #808080; } -.flash-messages .success .new-dataset { - font-size: 150%; -} -.flash-messages.success .new-dataset a { - font-weight: bold; -} body.package.read #sidebar li.widget-container { border: 0 } diff --git a/ckan/public/scripts/templates.js b/ckan/public/scripts/templates.js index d445e3ee7d3..cce4bf1bffd 100644 --- a/ckan/public/scripts/templates.js +++ b/ckan/public/scripts/templates.js @@ -76,7 +76,7 @@ CKAN.Templates.resourceEntry = ' \ CKAN.Templates.resourceDetails = ' \