<div>
<% if newss.empty? %>
    <p class="nodata">
      <%= l(:label_no_data) %>
    </p>
<% else %>
    <% newss.each do |news| %>
        <div class="problem_main upload_img">
          <%= link_to image_tag(url_to_avatar(news.author),:width => 42,:height => 42), user_path(news.author), :class => "problem_pic fl" %>
          <div class="problem_txt fl mt5 list_style">
            <%= link_to_user_header(news.author,false,{:class=> 'problem_name c_orange fl'}) if news.respond_to?(:author) %>
            <span class="fl">
                <%= l(:label_release_news) %>：
              </span>
            <%= link_to h(news.title), news_path(news),:class => 'problem_tit fl fb c_dblue' %>
            <%=link_to "<span class = 'pic_mes'>#{news.comments.all.count}</span>".html_safe, news_path(news.id), :class => "pro_mes_w" %>
            <br />
            <div class="cl mb5"></div>
            <script>
                $(function(){if($("#news_description_<%= news.id%>_content").height()>360){$("#news_foot_<%= news.id%>").show();}});
            </script>
            <div  id="news_description_<%= news.id%>" class="news_description mt5">
              <div id="news_description_<%= news.id%>_content" class="upload_img">
                <%= news.description.html_safe %>
              </div>
            </div>
            <div class="cl"></div>
            <div class="news_foot currentDd fr"  style="cursor:pointer;display: none;" onclick="news_show_more_des(<%= news.id %>);" id="news_foot_<%= news.id %>">
              [展开]
            </div>
            <div class="cl mb5"></div>
            <span class="fl"><%= l(:label_create_time)%>：<%= format_time(news.created_on)%></span>
            <%= link_to_attachments_course news %>
            <div class="cl"></div>
            <%#= render :partial => 'student_work/work_attachments', :locals => {:attachments => news.attachments} %>
          </div>
          <div class="cl"></div>
        </div><!--problem_main end-->

    <% end %>
<% end %>
</div>
<!--end-->

<ul class="wlist">
  <%= pagination_links_full obj_pages, obj_count, :per_page_links => false, :remote => false, :flag => true%>
</ul>