Commit 473666ab authored by Simon Knox's avatar Simon Knox

Merge branch 'issue_928_group_boards' of gitlab.com:gitlab-org/gitlab-ee into...

Merge branch 'issue_928_group_boards' of gitlab.com:gitlab-org/gitlab-ee into issue_928_group_boards
parents b8b72d99 dc1b66cf
...@@ -24,7 +24,7 @@ class Projects::BoardsController < Projects::ApplicationController ...@@ -24,7 +24,7 @@ class Projects::BoardsController < Projects::ApplicationController
def assign_endpoint_vars def assign_endpoint_vars
@boards_endpoint = project_boards_url(project) @boards_endpoint = project_boards_url(project)
@bulk_issues_path = bulk_update_project_issues_path(project) @bulk_issues_path = bulk_update_project_issues_path(project)
@namespace_path = project.namespace.path @namespace_path = project.namespace.full_path
@labels_endpoint = project_labels_path(project) @labels_endpoint = project_labels_path(project)
end end
......
...@@ -41,8 +41,8 @@ module BoardsHelper ...@@ -41,8 +41,8 @@ module BoardsHelper
current_board_parent.multiple_issue_boards_available?(current_user) current_board_parent.multiple_issue_boards_available?(current_user)
end end
def board_path(board) def current_board_path(board)
@board_path ||= project_board_path(current_board_parent, board) @current_board_path ||= project_board_path(current_board_parent, board)
end end
def current_board_parent def current_board_parent
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
%li{ "v-for" => "board in boards" } %li{ "v-for" => "board in boards" }
%a{ ":href" => "'#{board_base_url}/' + board.id" } %a{ ":href" => "'#{board_base_url}/' + board.id" }
{{ board.name }} {{ board.name }}
- if !multiple_boards_available? && @boards.size > 1 - if !multiple_boards_available? && current_board_parent.boards.size > 1
%li.small %li.small
Some of your boards are hidden, activate a license to see them again. Some of your boards are hidden, activate a license to see them again.
.dropdown-loading{ "v-if" => "loading" } .dropdown-loading{ "v-if" => "loading" }
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
%p %p
Are you sure you want to delete this board? Are you sure you want to delete this board?
.board-delete-btns.clearfix .board-delete-btns.clearfix
= link_to board_path(board), = link_to current_board_path(board),
class: "btn btn-danger pull-left", class: "btn btn-danger pull-left",
method: :delete do method: :delete do
Delete Delete
......
...@@ -2,6 +2,7 @@ module EE ...@@ -2,6 +2,7 @@ module EE
module Boards module Boards
module BoardsController module BoardsController
extend ActiveSupport::Concern extend ActiveSupport::Concern
prepended do prepended do
before_action :check_multiple_issue_boards_available!, only: [:create] before_action :check_multiple_issue_boards_available!, only: [:create]
before_action :authorize_admin_board!, only: [:create, :update, :destroy] before_action :authorize_admin_board!, only: [:create, :update, :destroy]
......
...@@ -25,8 +25,8 @@ module EE ...@@ -25,8 +25,8 @@ module EE
end end
end end
def board_path(board) def current_board_path(board)
@board_path ||= begin @current_board_path ||= begin
if board.group_board? if board.group_board?
group_board_path(current_board_parent, board) group_board_path(current_board_parent, board)
else else
......
...@@ -26,6 +26,7 @@ module Gitlab ...@@ -26,6 +26,7 @@ module Gitlab
apple-touch-icon.png apple-touch-icon.png
assets assets
autocomplete autocomplete
boards
ci ci
dashboard dashboard
deploy.html deploy.html
...@@ -118,6 +119,7 @@ module Gitlab ...@@ -118,6 +119,7 @@ module Gitlab
analytics analytics
audit_events audit_events
avatar avatar
boards
edit edit
group_members group_members
hooks hooks
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment