From 617f31de3921a37a96947f82552dca0a218fab04 Mon Sep 17 00:00:00 2001 From: yanxd Date: Tue, 26 Nov 2013 20:33:15 +0800 Subject: [PATCH] show img bug --- app/views/memos/show.html.erb | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/app/views/memos/show.html.erb b/app/views/memos/show.html.erb index a0582aab7..e239bd79d 100644 --- a/app/views/memos/show.html.erb +++ b/app/views/memos/show.html.erb @@ -1,4 +1,3 @@ - +
@@ -131,7 +145,8 @@ <%= link_to image_tag(url_to_avatar(reply.author), :class => "avatar"), user_path(reply.author) %> -
<%=h reply.content.html_safe %>
+
<%=h reply.content.html_safe %>
+

<% if reply.attachments.any?%> <% options = {:author => true} %>