Project

General

Profile

Defect #2414 » fix_add_news_button.patch

Alexander Meindl, 2021-05-07 11:04

View differences:

app/views/news/index.html.erb
2 2
<%= link_to(l(:label_news_new),
3 3
            (@project ? project_news_index_path(@project) : news_index_path),
4 4
            :class => 'icon icon-add',
5
            :onclick => 'showAndScrollTo("add-news", "news_title"); return false;') if (@project.nil? || (@project && User.current.allowed_to?(:manage_news, @project))) %>
5
            :onclick => 'showAndScrollTo("add-news", "news_title"); return false;') if User.current.allowed_to?(:manage_news, @project, global: true) %>
6 6
<%= watcher_link(@project.enabled_module('news'), User.current) if @project && User.current.logged? %>
7 7
</div>
8 8

  
(2-2/2)