<%= link_to image_tag(url_to_avatar(reply.author), :width => 45,:height => 45), user_path(reply.author) %>
<%= reply.author.name%>
<% if reply.parent && reply.parent.id != @memo.id%>
回复<%= reply.parent.author.name%>
<% end %>
<%= format_date(reply.created_at)%>
<%= link_to(
l(:button_delete),
{:action => 'destroy', :id => reply},
:method => :delete,
:data => {:confirm => l(:text_are_you_sure)},
:title => l(:button_delete),:class=>'replyGrey fr ml10'
) if reply.destroyable_by?(User.current) %>
回复
<%= reply.content.html_safe%>
<%= form_for(@memo_new, url: forum_memos_path, :method=>'post') do |f| %>
<%= f.hidden_field :subject, :required => true, value: @memo.subject %>
<%= f.hidden_field :forum_id, :required => true, value: @memo.forum_id %>
<%= f.hidden_field :parent_id, :required => true, value: @memo.id %>
<%= hidden_field_tag :quote,"",:required => false,:style => 'display:none' %>
取消
发布
<% end %>