Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove references to removable #136

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions app/views/fields/active_storage/_item.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ controlled via a boolean local variable.
A wrapper around the image url pulled from the database.
- `attachment`:
Reference to the file
- `removable`:
A boolean used to control the display of a `Remove` link which
is used to destroy a single attachment. Defaults to `false`
- `size`:
[x, y]
Maximum size of the ActiveStorage preview.
Expand Down
5 changes: 0 additions & 5 deletions app/views/fields/active_storage/_items.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@ This partial renders one or more attachments
- `field`:
An instance of [Administrate::Field::Image].
A wrapper around the image url pulled from the database.
- `removable`:
A boolean used to control the display of a `Remove` link which
is used to destroy a single attachment. Defaults to `false`
- `size`:
[x, y]
Maximum size of the ActiveStorage preview.
Defaults to `field.show_preview_size`.
%>

<%
removable = local_assigns.fetch(:removable, false)
variant = local_assigns.fetch(:variant, field.show_preview_variant)
size = local_assigns.fetch(:size, field.show_preview_size)
%>
Expand All @@ -29,7 +25,6 @@ This partial renders one or more attachments
locals: {
field: field,
attachment: attachment,
removable: removable,
variant: variant,
size: size
} %>
Expand Down
Loading