<% btn_tips = l(:label_news_notice) label_tips = l(:label_course_news) %>

<%= label_tips %>

<%= l(:label_total_news) %> <%= @news_count %> <%= l(:label_course_news_count) %>

<% if @course && User.current.allowed_to?(:manage_news, @course) %> <%= link_to(btn_tips,new_course_news_path(@course),:class => 'problem_new_btn fl c_dorange')%>
<% end %>
<% if @newss.empty? %>

<%= l(:label_no_data) %>

<% else %> <% @newss.each do |news| %>
<%= link_to image_tag(url_to_avatar(news.author),:width => 42,:height => 42), user_path(news.author), :class => "problem_pic fl" %>
<%= link_to_user_header(news.author,false,{:class=> 'problem_name c_orange fl'}) if news.respond_to?(:author) %> <%= l(:label_release_news) %>: <%= link_to h(news.title), news_path(news),:class => 'problem_tit fl fb c_dblue' %>
<%= news.description.html_safe %>
<%= l(:label_create_time)%>:<%= format_time(news.created_on)%> <%= link_to_attachments_course news %>
<%#= render :partial => 'student_work/work_attachments', :locals => {:attachments => news.attachments} %>
<% end %> <% end %>
<% content_for :header_tags do %> <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %> <%= stylesheet_link_tag 'scm' %> <% end %> <% html_title(l(:label_course_news)) -%>