<%= content_for(:header_tags) do %> <%= import_ke(enable_at: false, prettify: false, init_activity: true) %> <% end %>

<%= @user.show_name %> > 讨论区

帖子详情

<%= link_to '返回', forums_path(:type => @type, :page => @forum_page), :class => 'fr font-12 mr15 mt3 color-grey' %>
<%= image_tag(url_to_avatar(@memo.author), :width => 60, :height => 60, :alt=>'用户头像', :class=>"panel-list-img mr15" ) %>

<%= h @memo.subject %> <% if @memo.sticky %> 置顶 <% end %>

<%= @memo.author.show_name %>更新于<%= time_from_now @memo.updated_at %> <% if @memo.try(:reward).present? %> <%= @memo.try(:reward) %> <% end %>

<% if @user.admin? || @user == @memo.author %>
<% end %>
<%= @memo.content.html_safe %>
    <% 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, :is_float => true} %> <% end %>
<%= render :partial => "memo_all_replies" %>
<% if false %> <%= content_for(:header_tags) do %> <%= import_ke(enable_at: false, prettify: false, init_activity: true) %> <%= javascript_include_tag 'forum' %> <% end %>
<%= link_to image_tag(url_to_avatar(@memo.author),:width=>50,:height => 50,:alt=>'贴吧图像' ),user_path(@memo.author) %>
<% if @memo.author.id == User.current.id || User.current.admin? || User.current == @forum.creator %>
    • <% if @memo.author.id == User.current.id || User.current.admin? %>
    • 编辑
    • <% end %> <% if User.current.admin? || User.current == @forum.creator %> <% if @memo.sticky %>
    • 取消置顶
    • <% else %>
    • 置顶
    • <% end %> <% end %>
    • 删除
<% end %> <%= render :partial => "memos/praise_tread",:locals => {:obj => @memo,:show_flag => true,:user_id =>User.current.id,:horizontal => true}%>
<%= link_to @memo.author.show_name, user_path(@memo.author), :class => "linkBlue2", :target=> "_blank"%>
<%= format_date( @memo.created_at)%>
<%= @memo.content.html_safe%>
<% 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, :is_float => true} %> <% end %>
更新时间:<%= format_date(@memo.updated_at)%>
回复(<%= @reply_count %>)
<%= render :partial => 'memos/memo_all_replies' %>
<%= link_to image_tag(url_to_avatar(User.current), :width => "33", :height => "33"), user_path(User.current), :alt => "用户头像" %>
<% if User.current.logged? %>
<%= form_for('memo',: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%>
<% else %> <%= render :partial => "users/show_unlogged" %> <% end %>
<%= render :partial => "memos/my_show_count_message" %>
<% end %>