diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-06-20 07:56:54 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2019-06-20 07:56:54 +0000 |
commit | 29c1124e66b264e9365744f2868306cd8c6265ea (patch) | |
tree | bd53fec7f641382370be87a04cef0e65291e9c0f /app/views/boards | |
parent | bf4827bd1897867556cc614c300c7420b2b9ab6a (diff) | |
download | redmine-29c1124e66b264e9365744f2868306cd8c6265ea.tar.gz redmine-29c1124e66b264e9365744f2868306cd8c6265ea.zip |
Make project settings more accessible (#22090).
Patch by Jan Schulz-Hofen and Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18283 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/boards')
-rw-r--r-- | app/views/boards/index.html.erb | 6 | ||||
-rw-r--r-- | app/views/boards/show.html.erb | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/app/views/boards/index.html.erb b/app/views/boards/index.html.erb index 21280e1af..89df7aae5 100644 --- a/app/views/boards/index.html.erb +++ b/app/views/boards/index.html.erb @@ -1,3 +1,9 @@ +<div class="contextual"> + <%= link_to_if_authorized l(:label_settings), + {:controller => 'projects', :action => 'settings', :id => @project, :tab => 'boards'}, + :class => 'icon icon-settings' if User.current.allowed_to?(:manage_boards, @project) %> +</div> + <h2><%= l(:label_board_plural) %></h2> <table class="list boards"> diff --git a/app/views/boards/show.html.erb b/app/views/boards/show.html.erb index 02dffa278..b80ff0383 100644 --- a/app/views/boards/show.html.erb +++ b/app/views/boards/show.html.erb @@ -6,6 +6,10 @@ :class => 'icon icon-add', :onclick => 'showAndScrollTo("add-message", "message_subject"); return false;' if User.current.allowed_to?(:add_messages, @board.project) %> <%= watcher_link(@board, User.current) %> +<%= link_to_if_authorized l(:label_settings), + {:controller => 'projects', :action => 'settings', :id => @project, :tab => 'boards'}, + :class => 'icon icon-settings' if User.current.allowed_to?(:manage_boards, @project) %> + </div> <div id="add-message" style="display:none;"> |