From ba97db849cd34a83c05234572d3d7261864c1782 Mon Sep 17 00:00:00 2001 From: Javan Makhmali Date: Sat, 6 Oct 2018 12:11:10 -0400 Subject: Add template for ActionText::Attachables::RemoteImage Fixes #15 --- app/views/action_text/attachables/_remote_image.html.erb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 app/views/action_text/attachables/_remote_image.html.erb (limited to 'app/views/action_text') diff --git a/app/views/action_text/attachables/_remote_image.html.erb b/app/views/action_text/attachables/_remote_image.html.erb new file mode 100644 index 0000000000..3372f8d940 --- /dev/null +++ b/app/views/action_text/attachables/_remote_image.html.erb @@ -0,0 +1,8 @@ +
+ <%= image_tag(remote_image.url, width: remote_image.width, height: remote_image.height) %> + <% if caption = remote_image.try(:caption) %> +
+ <%= caption %> +
+ <% end %> +
-- cgit v1.2.3