Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
4a0010bd
Commit
4a0010bd
authored
Sep 06, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport haml changes
parent
f1d92cd2
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
50 additions
and
42 deletions
+50
-42
app/views/shared/boards/components/_board.html.haml
app/views/shared/boards/components/_board.html.haml
+12
-11
app/views/shared/boards/components/_sidebar.html.haml
app/views/shared/boards/components/_sidebar.html.haml
+2
-1
app/views/shared/boards/components/sidebar/_assignee.html.haml
...iews/shared/boards/components/sidebar/_assignee.html.haml
+6
-6
app/views/shared/boards/components/sidebar/_due_date.html.haml
...iews/shared/boards/components/sidebar/_due_date.html.haml
+4
-4
app/views/shared/boards/components/sidebar/_labels.html.haml
app/views/shared/boards/components/sidebar/_labels.html.haml
+12
-5
app/views/shared/boards/components/sidebar/_milestone.html.haml
...ews/shared/boards/components/sidebar/_milestone.html.haml
+5
-5
app/views/shared/boards/components/sidebar/_notifications.html.haml
...shared/boards/components/sidebar/_notifications.html.haml
+1
-1
app/views/shared/issuable/_label_page_default.html.haml
app/views/shared/issuable/_label_page_default.html.haml
+5
-6
app/views/shared/issuable/_search_bar.html.haml
app/views/shared/issuable/_search_bar.html.haml
+3
-3
No files found.
app/views/shared/boards/components/_board.html.haml
View file @
4a0010bd
...
@@ -7,20 +7,26 @@
...
@@ -7,20 +7,26 @@
":class"
:
"{
\"
fa-caret-down
\"
: list.isExpanded,
\"
fa-caret-right
\"
: !list.isExpanded && list.position === -1,
\"
fa-caret-left
\"
: !list.isExpanded && list.position !== -1 }"
,
":class"
:
"{
\"
fa-caret-down
\"
: list.isExpanded,
\"
fa-caret-right
\"
: !list.isExpanded && list.position === -1,
\"
fa-caret-left
\"
: !list.isExpanded && list.position !== -1 }"
,
"aria-hidden"
:
"true"
}
"aria-hidden"
:
"true"
}
%span
.has-tooltip
{
"v-if"
:
"list.type !==
\"
label
\"
"
,
%span
.
board-title-text.
has-tooltip
{
"v-if"
:
"list.type !==
\"
label
\"
"
,
":title"
=>
'(list.label ? list.label.description : "")'
}
":title"
=>
'(list.label ? list.label.description : "")'
}
{{ list.title }}
{{ list.title }}
%span
.has-tooltip
{
"v-if"
:
"list.type ===
\"
label
\"
"
,
%span
.has-tooltip
{
"v-if"
:
"list.type ===
\"
label
\"
"
,
":title"
=>
'(list.label ? list.label.description : "")'
,
":title"
=>
'(list.label ? list.label.description : "")'
,
data:
{
container:
"body"
,
placement:
"bottom"
},
data:
{
container:
"body"
,
placement:
"bottom"
},
class:
"label color-label title"
,
class:
"label color-label title
board-title-text
"
,
":style"
=>
"{ backgroundColor: (list.label && list.label.color ? list.label.color : null), color: (list.label && list.label.color ? list.label.text_color :
\"
#2e2e2e
\"
) }"
}
":style"
=>
"{ backgroundColor: (list.label && list.label.color ? list.label.color : null), color: (list.label && list.label.color ? list.label.text_color :
\"
#2e2e2e
\"
) }"
}
{{ list.title }}
{{ list.title }}
.issue-count-badge.pull-right.clearfix
{
"v-if"
=>
'list.type !== "blank"'
}
-
if
can?
(
current_user
,
:admin_list
,
current_board_parent
)
%board-delete
{
"inline-template"
=>
true
,
":list"
=>
"list"
,
"v-if"
=>
"!list.preset && list.id"
}
%button
.board-delete.has-tooltip.pull-right
{
type:
"button"
,
title:
"Delete list"
,
"aria-label"
=>
"Delete list"
,
data:
{
placement:
"bottom"
},
"@click.stop"
=>
"deleteBoard"
}
=
icon
(
"trash"
)
.issue-count-badge.clearfix
{
"v-if"
=>
'list.type !== "blank"'
}
%span
.issue-count-badge-count.pull-left
{
":class"
=>
'
{
"has-btn"
:
list
.
type
!==
"closed"
&&
!
disabled
}
'
}
%span
.issue-count-badge-count.pull-left
{
":class"
=>
'
{
"has-btn"
:
list
.
type
!==
"closed"
&&
!
disabled
}
'
}
{{ list.issuesSize }}
{{ list.issuesSize }}
-
if
can?
(
current_user
,
:admin_
issue
,
@projec
t
)
-
if
can?
(
current_user
,
:admin_
list
,
current_board_paren
t
)
%button
.issue-count-badge-add-button.btn.btn-small.btn-default.has-tooltip.js-no-trigger-collapse
{
type:
"button"
,
%button
.issue-count-badge-add-button.btn.btn-small.btn-default.has-tooltip.js-no-trigger-collapse
{
type:
"button"
,
"@click"
=>
"showNewIssueForm"
,
"@click"
=>
"showNewIssueForm"
,
"v-if"
=>
'list.type !== "closed"'
,
"v-if"
=>
'list.type !== "closed"'
,
...
@@ -28,12 +34,7 @@
...
@@ -28,12 +34,7 @@
"title"
=>
"New issue"
,
"title"
=>
"New issue"
,
data:
{
placement:
"top"
,
container:
"body"
}
}
data:
{
placement:
"top"
,
container:
"body"
}
}
=
icon
(
"plus"
,
class:
"js-no-trigger-collapse"
)
=
icon
(
"plus"
,
class:
"js-no-trigger-collapse"
)
-
if
can?
(
current_user
,
:admin_list
,
@project
)
%board-delete
{
"inline-template"
=>
true
,
":list"
=>
"list"
,
"v-if"
=>
"!list.preset && list.id"
}
%button
.board-delete.has-tooltip.pull-right
{
type:
"button"
,
title:
"Delete list"
,
"aria-label"
=>
"Delete list"
,
data:
{
placement:
"bottom"
},
"@click.stop"
=>
"deleteBoard"
}
=
icon
(
"trash"
)
%board-list
{
"v-if"
=>
'list.type !== "blank"'
,
%board-list
{
"v-if"
=>
'list.type !== "blank"'
,
":list"
=>
"list"
,
":list"
=>
"list"
,
":issues"
=>
"list.issues"
,
":issues"
=>
"list.issues"
,
...
@@ -42,5 +43,5 @@
...
@@ -42,5 +43,5 @@
":issue-link-base"
=>
"issueLinkBase"
,
":issue-link-base"
=>
"issueLinkBase"
,
":root-path"
=>
"rootPath"
,
":root-path"
=>
"rootPath"
,
"ref"
=>
"board-list"
}
"ref"
=>
"board-list"
}
-
if
can?
(
current_user
,
:admin_list
,
@projec
t
)
-
if
can?
(
current_user
,
:admin_list
,
current_board_paren
t
)
%board-blank-state
{
"v-if"
=>
'list.id == "blank"'
}
%board-blank-state
{
"v-if"
=>
'list.id == "blank"'
}
app/views/shared/boards/components/_sidebar.html.haml
View file @
4a0010bd
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
%br
/
%br
/
%span
%span
=
precede
"#"
do
=
precede
"#"
do
{{ issue.id }}
{{ issue.i
i
d }}
%a
.gutter-toggle.pull-right
{
role:
"button"
,
%a
.gutter-toggle.pull-right
{
role:
"button"
,
href:
"#"
,
href:
"#"
,
"@click.prevent"
=>
"closeSidebar"
,
"@click.prevent"
=>
"closeSidebar"
,
...
@@ -23,5 +23,6 @@
...
@@ -23,5 +23,6 @@
=
render
"shared/boards/components/sidebar/labels"
=
render
"shared/boards/components/sidebar/labels"
=
render
"shared/boards/components/sidebar/notifications"
=
render
"shared/boards/components/sidebar/notifications"
%remove-btn
{
":issue"
=>
"issue"
,
%remove-btn
{
":issue"
=>
"issue"
,
":issue-update"
=>
"'#{build_issue_link_base}/' + issue.iid + '.json'"
,
":list"
=>
"list"
,
":list"
=>
"list"
,
"v-if"
=>
"canRemove"
}
"v-if"
=>
"canRemove"
}
app/views/shared/boards/components/sidebar/_assignee.html.haml
View file @
4a0010bd
...
@@ -2,13 +2,13 @@
...
@@ -2,13 +2,13 @@
%template
{
"v-if"
=>
"issue.assignees"
}
%template
{
"v-if"
=>
"issue.assignees"
}
%assignee-title
{
":number-of-assignees"
=>
"issue.assignees.length"
,
%assignee-title
{
":number-of-assignees"
=>
"issue.assignees.length"
,
":loading"
=>
"loadingAssignees"
,
":loading"
=>
"loadingAssignees"
,
":editable"
=>
can
?
(
current_user
,
:admin_issue
,
@project
)
}
":editable"
=>
can
_admin_issue?
}
%assignees
.value
{
"root-path"
=>
"#{root_url}"
,
%assignees
.value
{
"root-path"
=>
"#{root_url}"
,
":users"
=>
"issue.assignees"
,
":users"
=>
"issue.assignees"
,
":editable"
=>
can
?
(
current_user
,
:admin_issue
,
@project
)
,
":editable"
=>
can
_admin_issue?
,
"@assign-self"
=>
"assignSelf"
}
"@assign-self"
=>
"assignSelf"
}
-
if
can
?
(
current_user
,
:admin_issue
,
@project
)
-
if
can
_admin_issue?
.selectbox.hide-collapsed
.selectbox.hide-collapsed
%input
.js-vue
{
type:
"hidden"
,
%input
.js-vue
{
type:
"hidden"
,
name:
"issue[assignee_ids][]"
,
name:
"issue[assignee_ids][]"
,
...
@@ -20,9 +20,9 @@
...
@@ -20,9 +20,9 @@
":data-username"
=>
"assignee.username"
}
":data-username"
=>
"assignee.username"
}
.dropdown
.dropdown
-
dropdown_options
=
issue_assignees_dropdown_options
-
dropdown_options
=
issue_assignees_dropdown_options
%button
.dropdown-menu-toggle.js-user-search.js-author-search.js-multiselect.js-save-user-data.js-issue-board-sidebar
{
type:
'button'
,
ref:
'assigneeDropdown'
,
data:
{
toggle:
'dropdown'
,
field_name:
'issue[assignee_ids][]'
,
first_user:
current_user
&
.
username
,
current_user:
'true'
,
project_id:
@project
.
id
,
null_user:
'true'
,
multi_select:
'true'
,
'dropdown-header'
:
dropdown_options
[
:data
][
:'dropdown-header'
],
'max-select'
:
dropdown_options
[
:data
][
:'max-select'
]
}
,
%button
.dropdown-menu-toggle.js-user-search.js-author-search.js-multiselect.js-save-user-data.js-issue-board-sidebar
{
type:
'button'
,
ref:
'assigneeDropdown'
,
data:
board_sidebar_user_data
,
":data-issuable-id"
=>
"issue.id"
,
":data-issuable-id"
=>
"issue.i
i
d"
,
":data-issue-update"
=>
"'#{
project_issues_path(@project)}/' + issue.
id + '.json'"
}
":data-issue-update"
=>
"'#{
build_issue_link_base}/' + issue.i
id + '.json'"
}
=
dropdown_options
[
:title
]
=
dropdown_options
[
:title
]
=
icon
(
"chevron-down"
)
=
icon
(
"chevron-down"
)
.dropdown-menu.dropdown-select.dropdown-menu-user.dropdown-menu-selectable.dropdown-menu-author
.dropdown-menu.dropdown-select.dropdown-menu-user.dropdown-menu-selectable.dropdown-menu-author
...
...
app/views/shared/boards/components/sidebar/_due_date.html.haml
View file @
4a0010bd
.block.due_date
.block.due_date
.title
.title
Due date
Due date
-
if
can
?
(
current_user
,
:admin_issue
,
@project
)
-
if
can
_admin_issue?
=
icon
(
"spinner spin"
,
class:
"block-loading"
)
=
icon
(
"spinner spin"
,
class:
"block-loading"
)
=
link_to
"Edit"
,
"#"
,
class:
"js-sidebar-dropdown-toggle edit-link pull-right"
=
link_to
"Edit"
,
"#"
,
class:
"js-sidebar-dropdown-toggle edit-link pull-right"
.value
.value
...
@@ -10,12 +10,12 @@
...
@@ -10,12 +10,12 @@
No due date
No due date
%span
.bold
{
"v-if"
=>
"issue.dueDate"
}
%span
.bold
{
"v-if"
=>
"issue.dueDate"
}
{{ issue.dueDate | due-date }}
{{ issue.dueDate | due-date }}
-
if
can
?
(
current_user
,
:admin_issue
,
@project
)
-
if
can
_admin_issue?
%span
.no-value.js-remove-due-date-holder
{
"v-if"
=>
"issue.dueDate"
}
%span
.no-value.js-remove-due-date-holder
{
"v-if"
=>
"issue.dueDate"
}
\-
\-
%a
.js-remove-due-date
{
href:
"#"
,
role:
"button"
}
%a
.js-remove-due-date
{
href:
"#"
,
role:
"button"
}
remove due date
remove due date
-
if
can
?
(
current_user
,
:admin_issue
,
@project
)
-
if
can
_admin_issue?
.selectbox
.selectbox
%input
{
type:
"hidden"
,
%input
{
type:
"hidden"
,
name:
"issue[due_date]"
,
name:
"issue[due_date]"
,
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
.dropdown
.dropdown
%button
.dropdown-menu-toggle.js-due-date-select.js-issue-boards-due-date
{
type:
'button'
,
%button
.dropdown-menu-toggle.js-due-date-select.js-issue-boards-due-date
{
type:
'button'
,
data:
{
toggle:
'dropdown'
,
field_name:
"issue[due_date]"
,
ability_name:
"issue"
},
data:
{
toggle:
'dropdown'
,
field_name:
"issue[due_date]"
,
ability_name:
"issue"
},
":data-issue-update"
=>
"'#{
project_issues_path(@project)}/' + issue.
id + '.json'"
}
":data-issue-update"
=>
"'#{
build_issue_link_base}/' + issue.i
id + '.json'"
}
%span
.dropdown-toggle-text
Due date
%span
.dropdown-toggle-text
Due date
=
icon
(
'chevron-down'
)
=
icon
(
'chevron-down'
)
.dropdown-menu.dropdown-menu-due-date
.dropdown-menu.dropdown-menu-due-date
...
...
app/views/shared/boards/components/sidebar/_labels.html.haml
View file @
4a0010bd
.block.labels
.block.labels
.title
.title
Labels
Labels
-
if
can
?
(
current_user
,
:admin_issue
,
@project
)
-
if
can
_admin_issue?
=
icon
(
"spinner spin"
,
class:
"block-loading"
)
=
icon
(
"spinner spin"
,
class:
"block-loading"
)
=
link_to
"Edit"
,
"#"
,
class:
"js-sidebar-dropdown-toggle edit-link pull-right"
=
link_to
"Edit"
,
"#"
,
class:
"js-sidebar-dropdown-toggle edit-link pull-right"
.value.issuable-show-labels
.value.issuable-show-labels
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
"v-for"
=>
"label in issue.labels"
}
"v-for"
=>
"label in issue.labels"
}
%span
.label.color-label.has-tooltip
{
":style"
=>
"{ backgroundColor: label.color, color: label.textColor }"
}
%span
.label.color-label.has-tooltip
{
":style"
=>
"{ backgroundColor: label.color, color: label.textColor }"
}
{{ label.title }}
{{ label.title }}
-
if
can
?
(
current_user
,
:admin_issue
,
@project
)
-
if
can
_admin_issue?
.selectbox
.selectbox
%input
{
type:
"hidden"
,
%input
{
type:
"hidden"
,
name:
"issue[label_names][]"
,
name:
"issue[label_names][]"
,
...
@@ -19,12 +19,19 @@
...
@@ -19,12 +19,19 @@
":value"
=>
"label.id"
}
":value"
=>
"label.id"
}
.dropdown
.dropdown
%button
.dropdown-menu-toggle.js-label-select.js-multiselect.js-issue-board-sidebar
{
type:
"button"
,
%button
.dropdown-menu-toggle.js-label-select.js-multiselect.js-issue-board-sidebar
{
type:
"button"
,
data:
{
toggle:
"dropdown"
,
field_name:
"issue[label_names][]"
,
show_no:
"true"
,
show_any:
"true"
,
project_id:
@project
.
id
,
labels:
project_labels_path
(
@project
,
:json
),
namespace_path:
@project
.
try
(
:namespace
).
try
(
:full_path
),
project_path:
@project
.
try
(
:path
)
},
data:
{
toggle:
"dropdown"
,
":data-issue-update"
=>
"'#{project_issues_path(@project)}/' + issue.id + '.json'"
}
field_name:
"issue[label_names][]"
,
show_no:
"true"
,
show_any:
"true"
,
project_id:
@project
&
.
try
(
:id
),
labels:
labels_filter_path
(
false
),
namespace_path:
@project
.
try
(
:namespace
).
try
(
:full_path
),
project_path:
@project
.
try
(
:path
)
},
":data-issue-update"
=>
"'#{build_issue_link_base}/' + issue.iid + '.json'"
}
%span
.dropdown-toggle-text
%span
.dropdown-toggle-text
Label
Label
=
icon
(
'chevron-down'
)
=
icon
(
'chevron-down'
)
.dropdown-menu.dropdown-select.dropdown-menu-paging.dropdown-menu-labels.dropdown-menu-selectable
.dropdown-menu.dropdown-select.dropdown-menu-paging.dropdown-menu-labels.dropdown-menu-selectable
=
render
partial:
"shared/issuable/label_page_default"
=
render
partial:
"shared/issuable/label_page_default"
-
if
can?
current_user
,
:admin_label
,
@project
and
@project
-
if
can?
(
current_user
,
:admin_label
,
current_board_parent
)
=
render
partial:
"shared/issuable/label_page_create"
=
render
partial:
"shared/issuable/label_page_create"
app/views/shared/boards/components/sidebar/_milestone.html.haml
View file @
4a0010bd
.block.milestone
.block.milestone
.title
.title
Milestone
Milestone
-
if
can
?
(
current_user
,
:admin_issue
,
@project
)
-
if
can
_admin_issue?
=
icon
(
"spinner spin"
,
class:
"block-loading"
)
=
icon
(
"spinner spin"
,
class:
"block-loading"
)
=
link_to
"Edit"
,
"#"
,
class:
"js-sidebar-dropdown-toggle edit-link pull-right"
=
link_to
"Edit"
,
"#"
,
class:
"js-sidebar-dropdown-toggle edit-link pull-right"
.value
.value
...
@@ -9,17 +9,17 @@
...
@@ -9,17 +9,17 @@
None
None
%span
.bold.has-tooltip
{
"v-if"
=>
"issue.milestone"
}
%span
.bold.has-tooltip
{
"v-if"
=>
"issue.milestone"
}
{{ issue.milestone.title }}
{{ issue.milestone.title }}
-
if
can
?
(
current_user
,
:admin_issue
,
@project
)
-
if
can
_admin_issue?
.selectbox
.selectbox
%input
{
type:
"hidden"
,
%input
{
type:
"hidden"
,
":value"
=>
"issue.milestone.id"
,
":value"
=>
"issue.milestone.id"
,
name:
"issue[milestone_id]"
,
name:
"issue[milestone_id]"
,
"v-if"
=>
"issue.milestone"
}
"v-if"
=>
"issue.milestone"
}
.dropdown
.dropdown
%button
.dropdown-menu-toggle.js-milestone-select.js-issue-board-sidebar
{
type:
"button"
,
data:
{
toggle:
"dropdown"
,
show_no:
"true"
,
field_name:
"issue[milestone_id]"
,
project_id:
@project
.
id
,
milestones:
project_milestones_path
(
@project
,
:json
),
ability_name:
"issue"
,
use_id:
"true"
,
default_no:
"true"
},
%button
.dropdown-menu-toggle.js-milestone-select.js-issue-board-sidebar
{
type:
"button"
,
data:
{
toggle:
"dropdown"
,
show_no:
"true"
,
field_name:
"issue[milestone_id]"
,
milestones:
milestones_filter_path
(
format:
:json
),
ability_name:
"issue"
,
use_id:
"true"
,
default_no:
"true"
},
":data-selected"
=>
"milestoneTitle"
,
":data-selected"
=>
"milestoneTitle"
,
":data-issuable-id"
=>
"issue.id"
,
":data-issuable-id"
=>
"issue.i
i
d"
,
":data-issue-update"
=>
"'#{
project_issues_path(@project)}/' + issue.
id + '.json'"
}
":data-issue-update"
=>
"'#{
build_issue_link_base}/' + issue.i
id + '.json'"
}
Milestone
Milestone
=
icon
(
"chevron-down"
)
=
icon
(
"chevron-down"
)
.dropdown-menu.dropdown-select.dropdown-menu-selectable
.dropdown-menu.dropdown-select.dropdown-menu-selectable
...
...
app/views/shared/boards/components/sidebar/_notifications.html.haml
View file @
4a0010bd
-
if
current_user
-
if
current_user
.block.light.subscription
{
":data-url"
=>
"'#{
project_issues_path(@project)}/' + issue.
id + '/toggle_subscription'"
}
.block.light.subscription
{
":data-url"
=>
"'#{
build_issue_link_base}/' + issue.i
id + '/toggle_subscription'"
}
%span
.issuable-header-text.hide-collapsed.pull-left
%span
.issuable-header-text.hide-collapsed.pull-left
Notifications
Notifications
%button
.btn.btn-default.pull-right.js-subscribe-button.issuable-subscribe-button.hide-collapsed
{
type:
"button"
}
%button
.btn.btn-default.pull-right.js-subscribe-button.issuable-subscribe-button.hide-collapsed
{
type:
"button"
}
...
...
app/views/shared/issuable/_label_page_default.html.haml
View file @
4a0010bd
...
@@ -8,20 +8,19 @@
...
@@ -8,20 +8,19 @@
-
if
show_boards_content
-
if
show_boards_content
.issue-board-dropdown-content
.issue-board-dropdown-content
%p
%p
Create lists from the labels you use in your project. Issues with that
Create lists from labels. Issues with that label appear in that list.
label will automatically be added to the list.
=
dropdown_filter
(
filter_placeholder
)
=
dropdown_filter
(
filter_placeholder
)
=
dropdown_content
=
dropdown_content
-
if
@projec
t
&&
show_footer
-
if
current_board_paren
t
&&
show_footer
=
dropdown_footer
do
=
dropdown_footer
do
%ul
.dropdown-footer-list
%ul
.dropdown-footer-list
-
if
can?
(
current_user
,
:admin_label
,
@projec
t
)
-
if
can?
(
current_user
,
:admin_label
,
current_board_paren
t
)
%li
%li
%a
.dropdown-toggle-page
{
href:
"#"
}
%a
.dropdown-toggle-page
{
href:
"#"
}
Create new label
Create new label
%li
%li
=
link_to
project_labels_path
(
@project
)
,
:"data-is-link"
=>
true
do
=
link_to
labels_path
,
:"data-is-link"
=>
true
do
-
if
show_create
&&
@project
&&
can?
(
current_user
,
:admin_label
,
@projec
t
)
-
if
show_create
&&
can?
(
current_user
,
:admin_label
,
current_board_paren
t
)
Manage labels
Manage labels
-
else
-
else
View labels
View labels
...
...
app/views/shared/issuable/_search_bar.html.haml
View file @
4a0010bd
...
@@ -104,13 +104,13 @@
...
@@ -104,13 +104,13 @@
=
icon
(
'times'
)
=
icon
(
'times'
)
.filter-dropdown-container
.filter-dropdown-container
-
if
type
==
:boards
-
if
type
==
:boards
-
if
can?
(
current_user
,
:admin_list
,
@projec
t
)
-
if
can?
(
current_user
,
:admin_list
,
board
.
paren
t
)
.dropdown.prepend-left-10
#js-add-list
.dropdown.prepend-left-10
#js-add-list
%button
.btn.btn-create.btn-inverted.js-new-board-list
{
type:
"button"
,
data:
{
toggle:
"dropdown"
,
labels:
labels_filter_path
,
namespace_path:
@project
.
try
(
:namespace
).
try
(
:full_path
),
project_path:
@project
.
try
(
:path
)
}
}
%button
.btn.btn-create.btn-inverted.js-new-board-list
{
type:
"button"
,
data:
board_list_data
}
Add list
Add list
.dropdown-menu.dropdown-menu-paging.dropdown-menu-align-right.dropdown-menu-issues-board-new.dropdown-menu-selectable
.dropdown-menu.dropdown-menu-paging.dropdown-menu-align-right.dropdown-menu-issues-board-new.dropdown-menu-selectable
=
render
partial:
"shared/issuable/label_page_default"
,
locals:
{
show_footer:
true
,
show_create:
true
,
show_boards_content:
true
,
title:
"Add list"
}
=
render
partial:
"shared/issuable/label_page_default"
,
locals:
{
show_footer:
true
,
show_create:
true
,
show_boards_content:
true
,
title:
"Add list"
}
-
if
can?
(
current_user
,
:admin_label
,
@projec
t
)
-
if
can?
(
current_user
,
:admin_label
,
board
.
paren
t
)
=
render
partial:
"shared/issuable/label_page_create"
=
render
partial:
"shared/issuable/label_page_create"
=
dropdown_loading
=
dropdown_loading
#js-add-issues-btn
.prepend-left-10
#js-add-issues-btn
.prepend-left-10
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment