Skip to content

Commit d922b2b

Browse files
committed
feat: build tooltip text for assets
1 parent 92f4930 commit d922b2b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

app/cells/plugins/core/asset/input.haml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
= render_field_id
88
= render_label
99
= render_input
10+
- if @options[:tooltip]
11+
%br
12+
= render_tooltip

app/cells/plugins/core/asset_cell.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ def render_input
3939
@options[:form].file_field 'data[asset]'
4040
end
4141

42+
def render_tooltip
43+
@options[:tooltip]
44+
end
45+
4246
def associated_content_item_thumb_url
4347
data['asset']['style_urls']['mini']
4448
end

0 commit comments

Comments
 (0)