Skip to content

Releases: helloflask/bootstrap-flask

Version 2.0.0

13 Jan 11:04
Compare
Choose a tag to compare

This major version adds the Bootstrap 5 support (finally)!

Bootstrap 4 & 5 support

Now you can use the separate extension class for different Bootstrap major versions.

For Bootstrap 4, use the Bootstrap4 class:

from flask_bootstrap import Bootstrap4

# ...
bootstrap = Bootstrap4(app)

and import macros from the template path bootstrap4/:

{% from 'bootstrap4/form.html' import render_form %}

For Bootstrap 5, use the Bootstrap5 class:

from flask_bootstrap import Bootstrap5

# ...
bootstrap = Bootstrap5(app)

and import macros from the template path bootstrap5/:

{% from 'bootstrap5/form.html' import render_form %}

The Bootstrap class and bootstrap/ template path are deprecated since 2.0 and will be removed in 3.0.

Update on versions

  • Drop Python 2 and 3.5 support.
  • Bump Bootstrap Icons to v1.7.2.
  • Bump Bootstrap & Bootswatch to 4.6.1/5.1.3.

Donation enabled

Now you can support Bootstrap-Flask by donating on Open Collective. Your donation keeps Bootstrap-Flask maintained and updated with Bootstrap.

See the full changelog here: https://bootstrap-flask.readthedocs.io/en/stable/changelog/#id1

Thanks to @PanderMusubi for the help!

Version 1.8.0

05 Sep 05:06
Compare
Choose a tag to compare

This is the last version that supports Python 2.

Some new features in this version:

  • A better way to pass table action URLs (#146, #151)
  • Some configurations to change table action titles (#140)
  • SRI support (#142)

See the changelog for details: https://github.com/greyli/bootstrap-flask/blob/master/CHANGES.rst#180

Thanks to @yuxiaoy1 and @caffeinatedMike!

Version 1.7.0

10 Jun 01:31
Compare
Choose a tag to compare

The version includes a lot of improvements on render_table, especially for the table actions.

  • Add a custom_actions parameter for the render_table macro. When passing a list of tuples [(title, bootstrap icon, link)] to the custom_actions parameter, the render_table macro will create an icon (link) on the action column for each tuple in the list. The title text (first index of each tuple) will show when hovering over each custom_actions button. #134
  • Update Bootstrap Icons to v1.5.0.
  • Improve action icons for render_table, now the icons can be styled with the action-icon class. #137
  • Change the default action_pk_placeholder to ':id'. The support to the old value will be removed in version 2.0. #138

Version 1.6.0

29 May 10:21
Compare
Choose a tag to compare
  • Add a new_url parameter for the render_table macro. When passing an URL to the new_url parameter, the render_table macro will create an icon (link) on the action header (#133).
  • Fix the display of the delete icon for the render_table macro (#132).

Version 1.5.3

18 May 02:09
Compare
Choose a tag to compare

A bugfix release.

See the changelog for more details.

Version 1.5.2

13 Apr 01:06
Compare
Choose a tag to compare

A bugfix release:

  • Fix render_table macro for the breaking change in SQLAlchemy >= 1.4 (PR #124, thanks to @Demetriex)

Use the following command to upgrade:

pip install -U bootstrap-flask