Skip to content

Commit

Permalink
Cleanup test-app and allow html in messages macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
christabor committed Mar 17, 2017
1 parent f00b2a4 commit 96792e1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion flask_extras/macros/extras_msg.html
Expand Up @@ -19,7 +19,7 @@
{% endif %}
<p class="flash">
<strong>{{ category|capitalize }}:</strong>
{{ message }}
{{ message|safe }}
</p>
</div>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion test_app/app.py
Expand Up @@ -47,7 +47,7 @@ class SomeForm(FlaskForm):
description='enter your name',
validators=[validators.DataRequired()],
)
nickname = StringField('What do people all you?')
nickname = StringField('What do people call you?')


class SomeForm2(FlaskForm):
Expand Down
4 changes: 0 additions & 4 deletions test_app/templates/pages/bootstrap.html
Expand Up @@ -76,11 +76,7 @@ <h3>All macros here are specific to the bootstrap css/js framework</h3>
{{ example('dict2labels', 'Makes a dict of `name`:`label` into bootstrap labels') }}

{{ bs.dict2labels({'foo': 'danger', 'bar': 'success'}) }}
<span class="label label-danger">foo</span>

{{ bs.dict2labels({'foo': 'danger', 'bar': 'success'}, aslist=False) }}
<span class="label label-danger">foo</span>

<p>Or wrap it in an html list by specifying `aslist`:</p>

{{ bs.dict2labels({'foo': 'danger', 'bar': 'success'}, aslist=True) }}
Expand Down

0 comments on commit 96792e1

Please sign in to comment.