Skip to content

Commit

Permalink
Deprecate float positioning in File and Picture ingredients
Browse files Browse the repository at this point in the history
If you rely on them, please use `css_classes` in your ingredient's
settings instead.
  • Loading branch information
tvdeyen committed May 23, 2024
1 parent 70b0d49 commit c477124
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/views/alchemy/admin/ingredients/_file_fields.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
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: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
collection: ingredient.settings[:css_classes],
include_blank: Alchemy.t('None') %>
<%- else -%>
<% Alchemy::Deprecation.warn %(Float positioning in Picture 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: [
Expand Down

0 comments on commit c477124

Please sign in to comment.