<%= content_for(:header_tags) do %> <%= import_ke(enable_at: false, prettify: false, init_activity: true) %> <% end %>
<%= link_to image_tag(url_to_avatar(@news.author),:width=>50,:height => 50,:alt=>'图像' ),user_path(@news.author) %>
<% if User.current.allowed_to?(:manage_news, @course)%> <% elsif User.current.logged? %> <%end%>
<% if @news.try(:author).try(:realname) == ' ' %> <%= link_to @news.try(:author), user_path(@news.author,:host=>Setting.host_user), :class => "linkBlue2", :target=> "_blank" %> <% else %> <%= link_to @news.try(:author).try(:realname), user_path(@news.author,:host=>Setting.host_user), :class => "linkBlue2", :target=> "_blank" %> <% end %>
<%= format_time( @news.created_on)%>
<%= @news.description.html_safe%>
<%= render :partial=>"attachments/activity_attach", :locals=>{:activity => @news} %>
<%= render :partial => 'news/news_all_replies' %>