% if @project.project_type == Project::ProjectType_course btn_tips = l(:label_news_notice) label_tips = l(:label_course_news) else btn_tips = l(:label_news_new) label_tips = l(:label_news) end %> <%= label_tips %> <% if @project.enabled_modules.where("name = 'news'").count > 0 %> <%= link_to(btn_tips, new_project_news_path(@project), :class => 'icon icon-add', :onclick => 'showAndScrollTo("add-news", "news_title"); return false;') %> <% end %> <% if @project && User.current.allowed_to?(:manage_news, @project) %>
<% end %><%= l(:label_no_data) %>
<% else %> <% @newss.each do |news| %><%= link_to image_tag(url_to_avatar(news.author), :class => "avatar"), user_path(news.author) %> |
|