summaryrefslogtreecommitdiff
path: root/app/helpers/boards_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/boards_helper.rb')
-rw-r--r--app/helpers/boards_helper.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/app/helpers/boards_helper.rb b/app/helpers/boards_helper.rb
index be1e7016a1e..d869897db07 100644
--- a/app/helpers/boards_helper.rb
+++ b/app/helpers/boards_helper.rb
@@ -10,11 +10,11 @@ module BoardsHelper
boards_endpoint: @boards_endpoint,
lists_endpoint: board_lists_path(board),
board_id: board.id,
- disabled: "#{!can?(current_user, :admin_list, current_board_parent)}",
+ disabled: (!can?(current_user, :admin_list, current_board_parent)).to_s,
issue_link_base: build_issue_link_base,
root_path: root_path,
bulk_update_path: @bulk_issues_path,
- default_avatar: image_path(default_avatar)
+ default_avatar: image_path(default_avatar),
}
end
@@ -40,10 +40,10 @@ module BoardsHelper
def current_board_path(board)
@current_board_path ||= if board.group_board?
- group_board_path(current_board_parent, board)
- else
- project_board_path(current_board_parent, board)
- end
+ group_board_path(current_board_parent, board)
+ else
+ project_board_path(current_board_parent, board)
+ end
end
def current_board_parent
@@ -64,7 +64,7 @@ module BoardsHelper
labels_endpoint: @labels_endpoint,
namespace_path: @namespace_path,
project_path: @project&.path,
- group_path: @group&.path
+ group_path: @group&.path,
}
end
@@ -72,16 +72,16 @@ module BoardsHelper
dropdown_options = issue_assignees_dropdown_options
{
- toggle: 'dropdown',
- field_name: 'issue[assignee_ids][]',
+ toggle: "dropdown",
+ field_name: "issue[assignee_ids][]",
first_user: current_user&.username,
- current_user: 'true',
+ current_user: "true",
project_id: @project&.id,
group_id: @group&.id,
- null_user: 'true',
- multi_select: 'true',
+ null_user: "true",
+ multi_select: "true",
'dropdown-header': dropdown_options[:data][:'dropdown-header'],
- 'max-select': dropdown_options[:data][:'max-select']
+ 'max-select': dropdown_options[:data][:'max-select'],
}
end