<%=link_to @memo.author.name, user_path(@memo.author) if @memo.author%>
<% if @memo.attachments.any?%> <% options = {:author => true, :deletable => @memo.deleted_attach_able_by?(User.current) } %> <%= render :partial => 'attachments/links', :locals => {:attachments => @memo.attachments, :options => options} %> <% end %>
<%= pages_count += 1 %>楼 :
<% if reply.author%> <%= link_to image_tag(url_to_avatar(reply.author), :class => "avatar"), user_path(reply.author) %> <% else %> <%= image_tag('../images/avatars/User/0', :class => "avatar") %> <% end %> |
<%=h reply.content.html_safe %>
<% if reply.attachments.any?%> <% options = {:author => true, :deletable => reply.deleted_attach_able_by?(User.current) } %> <%= render :partial => 'attachments/links', :locals => {:attachments => reply.attachments, :options => options} %> <% end %> |
<% if reply.author %> <%= authoring reply.created_at, reply.author.name %> <% else %> <%= added_time reply.created_at %> <% end %> |