link_to_admin_projects_path.patch

Go MAEDA, 2019-10-20 14:26

Download (555 Bytes)

View differences:

app/helpers/projects_helper.rb
53 53
    if User.current.allowed_to?(:add_project, nil, :global => true)
54 54
      links << link_to(l(:label_project_new), new_project_path, :class => 'icon icon-add')
55 55
    end
56
    if User.current.admin?
57
      links << link_to(l(:label_administration), admin_projects_path, :class => 'icon icon-settings')
58
    end
56 59
    links
57 60
  end
58 61