Skip to content

Commit

Permalink
Merge pull request #2894 from AlchemyCMS/deprecate-float-positioning
Browse files Browse the repository at this point in the history
Deprecate float positioning in File and Picture ingredients
  • Loading branch information
tvdeyen authored May 24, 2024
2 parents 70b0d49 + c477124 commit 06fffe4
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 06fffe4

Please sign in to comment.