Commit 72c0431d authored by Felipe Artur's avatar Felipe Artur

Bring one group board to CE

parent 815d48ff
......@@ -140,3 +140,4 @@ export default {
</div>
</div>
</template>
......@@ -63,7 +63,7 @@ module BoardsHelper
labels: labels_filter_path(true),
labels_endpoint: @labels_endpoint,
namespace_path: @namespace_path,
project_path: @project&.try(:path),
project_path: @project&.path,
group_path: @group&.path
}
end
......@@ -76,7 +76,7 @@ module BoardsHelper
field_name: 'issue[assignee_ids][]',
first_user: current_user&.username,
current_user: 'true',
project_id: @project&.try(:id),
project_id: @project&.id,
group_id: @group&.id,
null_user: 'true',
multi_select: 'true',
......
......@@ -30,7 +30,7 @@ module FormHelper
null_user: true,
current_user: true,
project_id: @project&.id,
field_name: "issue[assignee_ids][]",
field_name: 'issue[assignee_ids][]',
default_label: 'Unassigned',
'max-select': 1,
'dropdown-header': 'Assignee',
......
......@@ -58,9 +58,6 @@ class GroupPolicy < BasePolicy
enable :admin_issue
end
rule { developer }.enable :admin_milestones
rule { reporter }.enable :admin_label
rule { master }.policy do
enable :create_projects
enable :admin_pipeline
......
......@@ -59,6 +59,7 @@
%strong.fly-out-top-item-name
#{ _('Issues') }
%span.badge.count.issue_counter.fly-out-badge= number_with_delimiter(issues_count)
%li.divider.fly-out-top-item
= nav_link(path: 'groups#issues', html_options: { class: 'home' }) do
= link_to issues_group_path(@group), title: 'List' do
......@@ -67,9 +68,9 @@
- if group_sidebar_link?(:boards)
= nav_link(path: ['boards#index', 'boards#show']) do
= link_to group_boards_path(@group), title: 'Boards' do
= link_to group_boards_path(@group), title: boards_link_text do
%span
Boards
= boards_link_text
- if group_sidebar_link?(:labels)
= nav_link(path: 'labels#index') do
......
......@@ -30,7 +30,7 @@ following locations:
- [Group Members](members.md)
- [Issues](issues.md)
- [Issue Boards](boards.md)
- [Group Issue Boards] (group_boards.md)
- [Group Issue Boards](group_boards.md)
- [Jobs](jobs.md)
- [Keys](keys.md)
- [Labels](labels.md)
......
......@@ -38,7 +38,7 @@ module EE
end
def boards_link_text
if @project.multiple_issue_boards_available?
if parent.multiple_issue_boards_available?
s_("IssueBoards|Boards")
else
s_("IssueBoards|Board")
......
......@@ -12,7 +12,7 @@ describe 'layouts/nav/sidebar/_project' do
end
describe 'issue boards' do
it 'has boards tab when multiple issue boards available' do
it 'has board tab' do
render
expect(rendered).to have_css('a[title="Boards"]')
......
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