-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated float positional classes from ingredients
They have been replaced by `css_classes` in your ingredients settings.
- Loading branch information
Showing
3 changed files
with
3 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,5 @@ | ||
<% css_classes = ingredient.settings[:css_classes] %> | ||
<%= f.input :link_text %> | ||
<%= f.input :title %> | ||
<%- if css_classes.present? -%> | ||
<%= f.input :css_class, | ||
collection: css_classes, | ||
include_blank: Alchemy.t('None') %> | ||
<%- else -%> | ||
<% Alchemy::Deprecation.warn %(Float positioning in File ingredients is deprecated. If you rely on them, please use `css_classes` in your "#{ingredient.role}" settings instead.) %> | ||
<%= f.input :css_class, | ||
label: Alchemy.t(:position_in_text), | ||
collection: [ | ||
[Alchemy.t(:above), "no_float"], | ||
[Alchemy.t(:left), "left"], | ||
[Alchemy.t(:right), "right"] | ||
], include_blank: Alchemy.t('Layout default') %> | ||
<%- end -%> | ||
<%= f.input :css_class, | ||
collection: ingredient.settings[:css_classes], | ||
include_blank: Alchemy.t('None') %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters