新闻
<% if @project && User.current.allowed_to?(:manage_news, @project) %> <%= labelled_form_for @news, :url =>{:controller=>'news',:action => 'new', :project_id => @project.id}, :html => {:nhname=>'form',:multipart => true, :id => 'news-form'} do |f| %> <%= render :partial => 'project_news_new', :locals => {:f => f, :news => @news, :edit_mode => false} %> <% end %> <% end %> <%= render :partial=> 'project_news_detail',:locals =>{:all_news => @newss, :page => 0} %>