uploads: add data attributes to thumbnail html.
Add data attributes to thumbnails on the /uploads, /upload_media_assets, and /media_assets pages. Add a `data-is-posted` attribute for styling thumbnails based on whether they've already been posted.
This commit is contained in:
@@ -119,7 +119,7 @@ class TableBuilder
|
||||
{
|
||||
id: "#{item.model_name.singular.dasherize}-#{item.id}",
|
||||
**row_attributes,
|
||||
**ApplicationController.helpers.data_attributes_for(item, "data", item.html_data_attributes)
|
||||
**ApplicationController.helpers.data_attributes_for(item)
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user