From 1706fffb4be70f1a5aac5929d271040883aad3ec Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Fri, 5 Dec 2014 16:02:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=95=99=E8=A8=80=E7=9A=84?= =?UTF-8?q?=E7=88=B6=E7=BA=A7=E7=95=99=E8=A8=80=E5=88=A0=E9=99=A4=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E9=A1=B5=E9=9D=A2=E6=8A=A5=E9=94=99=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/words/_journal_reply_items.html.erb | 60 ++++++++++--------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/app/views/words/_journal_reply_items.html.erb b/app/views/words/_journal_reply_items.html.erb index 867812f3c..fa69176a8 100644 --- a/app/views/words/_journal_reply_items.html.erb +++ b/app/views/words/_journal_reply_items.html.erb @@ -1,49 +1,51 @@ -<% reply_allow = JournalsForMessage.create_by_user? User.current %> -<% ids_r = 'reply_respond_form_'+ reply.id.to_s %> -
-
- <% if show_name %> - <%= image_tag url_to_avatar(reply.user) %> - <% else %> - <%= image_tag url_to_avatar(nil) %> - <% end %> -
-
- <% id = 'project_respond_form_'+ reply.id.to_s %> - <%= link_to reply.user.name, user_path(reply.user) %> - 回复 - <% parent_jour = JournalsForMessage.find reply.m_reply_id %> - <% if show_name && parent_jour %> +<% parent_jour = JournalsForMessage.where("id = #{reply.m_reply_id}").first %> +<% if parent_jour%> + <% reply_allow = JournalsForMessage.create_by_user? User.current %> + <% ids_r = 'reply_respond_form_'+ reply.id.to_s %> +
+
+ <% if show_name %> + <%= image_tag url_to_avatar(reply.user) %> + <% else %> + <%= image_tag url_to_avatar(nil) %> + <% end %> +
+
+ <% id = 'project_respond_form_'+ reply.id.to_s %> + <%= link_to reply.user.name, user_path(reply.user) %> + 回复 + <% if show_name %> <%= link_to parent_jour.user.name, user_path(parent_jour.user) %> - <% else %> + <% else %> <%= l(:label_anonymous) %> - <% end %> + <% end %>

<%= reply.notes %> -

-

+

+

<%= format_time reply.created_on %> -

-
-
+

+
+
<% if reply_allow %> <%= render :partial => "words/new_respond", :locals => {:journal => journal, :m_reply_id => m_reply_id,:show_name => show_name} %> <% end %> -
-
-
\ No newline at end of file +
+
+
+<% end %> \ No newline at end of file