Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
eafe356f
Commit
eafe356f
authored
Jul 04, 2015
by
Paul Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #926 from pawl/allow_success_flash
Allow flash message in success style
parents
15a47a55
a6815759
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
layout.html
flask_admin/templates/bootstrap3/admin/layout.html
+3
-2
No files found.
flask_admin/templates/bootstrap3/admin/layout.html
View file @
eafe356f
...
@@ -70,12 +70,13 @@
...
@@ -70,12 +70,13 @@
{% if messages %}
{% if messages %}
{% for category, m in messages %}
{% for category, m in messages %}
{% if category %}
{% if category %}
{# alert-error changed to alert-danger in bootstrap 3, mapping is for backwards compatibility #}
{% set mapping = {'message': 'info', 'error': 'danger'} %}
{% set mapping = {'message': 'info', 'error': 'danger'} %}
<div
class=
"alert alert-{{ mapping.get(category,
'warning'
) }} alert-dismissable"
>
<div
class=
"alert alert-{{ mapping.get(category,
category
) }} alert-dismissable"
>
{% else %}
{% else %}
<div
class=
"alert alert-dismissable"
>
<div
class=
"alert alert-dismissable"
>
{% endif %}
{% endif %}
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-hidden=
"true"
>
×
</button>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-hidden=
"true"
>
×
</button>
{{ m }}
{{ m }}
</div>
</div>
{% endfor %}
{% endfor %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment