All notable changes to this project will be documented in this file.
For more information about changelogs, check Keep a Changelog and Vandamme.
- [ENHANCEMENT] Bump versions of asset libraries
- [ENHANCEMENT] Replace
errors.get(:field)
witherrors[:field]
since the former is deprecated in Rails 5.
- [BUGFIX] Security: don’t always assume that the content of
link_to
is safe
Note that this might break your code if it relied on the wrong behavior of
Bh, assuming that the content of link_to
was always HTML safe.
For instance, if your app has the following code to display an image with a
link link_to '<img src="logo.png">', '/'
, then the image will not display
anymore, since Bh now correctly escapes the HTML content (as Rails and Padrino
do). In this case, you should use link_to image_tag('logo.png'), '/'
instead.
- [BUGFIX] Correctly align the "X" icon at the right of the field in basic forms
- [BUGFIX] Respect the original behavior of Padrino/Rails when calling
link_to
withnil
as the name
- [BUGFIX] Do not render the
:offset
option of the field helpers in the DOM - [BUGFIX] Do not render the
:label
option of the field helpers in the DOM - [ENHANCEMENT] Add
:label_options
option to customize the wrapping label of a field
- [FEATURE] Extend
form_for
to be wrapped in - when inside a
nav
, just likelink_to
- [FEATURE] Extend
button_to
to be wrapped in - when inside a
nav
, just likelink_to
- [BUGFIX] Match default placeholder with label content (therefore supporting localization)
- [ENHANCEMENT] Bootstrappify forms wrapped in
navbar
, setting their class to "navbar-form" - [ENHANCEMENT] Add
:help
option to display a help block after most form fields - [ENHANCEMENT] Bump Bootstrap version to 3.3.2
- [ENHANCEMENT] Bump Font Awesome version to 4.3.0
- [FEATURE] Add support for Middleman and Padrino for all helpers except
form_for
- [FEATURE] Extend
button_to
to accept the same :content, :size and :layout options asbutton
- [DEPRECATION] Deprecate
glyphicon
in favor oficon
(glyphicon
will still work until version 2.0.0) - [BUGFIX] Don’t override
button_to
unless:context
,:size
or:layout
is passed - [ENHANCEMENT] Allow
alert_box
to pass extra parameters to the alert box - [ENHANCEMENT] Allow
button_to
to pass extra parameters to the button element - [ENHANCEMENT] Allow
dropdown
to display a full-width button when called with{layout: :block, groupable: false}
- [ENHANCEMENT] Allow
dropdown
to pass:id
parameter to the dropdown- [ENHANCEMENT] Allow
modal
to pass the:id
parameter to the wrapping - [ENHANCEMENT] Allow
modal
to pass{button: :class}
parameter to the toggle - [ENHANCEMENT] Allow
panel
to pass extra parameters to the wrapping - [ENHANCEMENT] Allow
progress_bar
to pass extra parameters to the wrapping container - [ENHANCEMENT] Allow
progress_bar
to pass extra parameters to each bar - [ENHANCEMENT] Don’t render anything when
vertical
andhorizontal
are not wrapped in anavbar
- [ENHANCEMENT] Wrap plain content passed to
modal
inside the modal body - [ENHANCEMENT] Wrap plain content passed to
panel
inside the panel body
- [ENHANCEMENT] Bump Bootstrap version to 3.3.0
- [FEATURE] Add
icon
helper - [FEATURE] Add
font_awesome_css
helper - [FEATURE] Add
dropdown
helper - [FEATURE] Add
progress_bar
helper - [ENHANCEMENT] Add
:fieldset
option to decide whetherfields_for
should wrap fields in a tag - [FEATURE] Add
button
helper
- [BUGFIX] Remove
form-control
class fromfile_field
(#20) - [BUGFIX] Allow
record_object
to be passed tofields_for
(#22)
- No changes
- [FEATURE] Add
button_to
helper - [FEATURE] Add
navbar
helper
- [FEATURE] Add
nav
helper
- [FEATURE] Add
:prefix
,:suffix
options to form field helpers
- [FEATURE] Add
form_for
and form helpers for every type of field
- [FEATURE] Add
modal
- [FEATURE] Add
panel_row
- [FEATURE] Add
panel
- [FEATURE] Add
glyphicon
- [FEATURE] Add
bootstrap_css
,bootstrap_theme_css
andbootstrap_js
- [FEATURE] Add
alert_box
helper
- [ENHANCEMENT] Allow