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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
7c4d25a4
Commit
7c4d25a4
authored
May 06, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CE conflicts from master
parent
d0ddfcd0
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
1 addition
and
153 deletions
+1
-153
app/assets/javascripts/blob/file_template_selector.js
app/assets/javascripts/blob/file_template_selector.js
+0
-4
app/assets/javascripts/boards/boards_bundle.js
app/assets/javascripts/boards/boards_bundle.js
+0
-3
app/assets/javascripts/boards/components/issue_card_inner.js
app/assets/javascripts/boards/components/issue_card_inner.js
+0
-4
app/assets/javascripts/boards/models/assignee.js
app/assets/javascripts/boards/models/assignee.js
+1
-1
app/assets/javascripts/boards/models/issue.js
app/assets/javascripts/boards/models/issue.js
+0
-7
app/assets/javascripts/boards/stores/boards_store.js
app/assets/javascripts/boards/stores/boards_store.js
+0
-5
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+0
-3
app/assets/javascripts/filtered_search/filtered_search_manager.js
...ts/javascripts/filtered_search/filtered_search_manager.js
+0
-4
app/assets/javascripts/members.js
app/assets/javascripts/members.js
+0
-4
app/assets/javascripts/milestone_select.js
app/assets/javascripts/milestone_select.js
+0
-3
app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js
...ts/protected_branches/protected_branch_access_dropdown.js
+0
-4
app/assets/javascripts/sidebar/components/assignees/assignees.js
...ets/javascripts/sidebar/components/assignees/assignees.js
+0
-4
app/assets/javascripts/sidebar/components/assignees/sidebar_assignees.js
...scripts/sidebar/components/assignees/sidebar_assignees.js
+0
-11
app/assets/javascripts/sidebar/components/time_tracking/sidebar_time_tracking.js
...sidebar/components/time_tracking/sidebar_time_tracking.js
+0
-12
app/assets/javascripts/sidebar/sidebar_bundle.js
app/assets/javascripts/sidebar/sidebar_bundle.js
+0
-9
app/assets/javascripts/sidebar/sidebar_mediator.js
app/assets/javascripts/sidebar/sidebar_mediator.js
+0
-5
app/assets/javascripts/sidebar/stores/sidebar_store.js
app/assets/javascripts/sidebar/stores/sidebar_store.js
+0
-8
app/assets/stylesheets/pages/boards.scss
app/assets/stylesheets/pages/boards.scss
+0
-8
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+0
-4
app/views/layouts/project.html.haml
app/views/layouts/project.html.haml
+0
-3
app/views/projects/boards/components/sidebar/_assignee.html.haml
...ws/projects/boards/components/sidebar/_assignee.html.haml
+0
-4
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+0
-4
app/views/projects/protected_branches/_create_protected_branch.html.haml
...cts/protected_branches/_create_protected_branch.html.haml
+0
-12
app/views/projects/protected_branches/_update_protected_branch.html.haml
...cts/protected_branches/_update_protected_branch.html.haml
+0
-8
app/views/shared/issuable/_sidebar.html.haml
app/views/shared/issuable/_sidebar.html.haml
+0
-15
app/views/shared/issuable/form/_metadata.html.haml
app/views/shared/issuable/form/_metadata.html.haml
+0
-4
No files found.
app/assets/javascripts/blob/file_template_selector.js
View file @
7c4d25a4
...
...
@@ -54,10 +54,6 @@ export default class FileTemplateSelector {
reportSelection
(
options
)
{
const
{
query
,
e
,
data
}
=
options
;
<<<<<<<
HEAD
=======
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
e
.
preventDefault
();
return
this
.
mediator
.
selectTemplateFile
(
this
,
query
,
data
);
}
...
...
app/assets/javascripts/boards/boards_bundle.js
View file @
7c4d25a4
...
...
@@ -64,11 +64,8 @@ $(() => {
rootPath
:
$boardApp
.
dataset
.
rootPath
,
bulkUpdatePath
:
$boardApp
.
dataset
.
bulkUpdatePath
,
detailIssue
:
Store
.
detail
,
<<<<<<<
HEAD
milestoneTitle
:
$boardApp
.
dataset
.
boardMilestoneTitle
,
=======
defaultAvatar
:
$boardApp
.
dataset
.
defaultAvatar
,
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
},
computed
:
{
detailIssueVisible
()
{
...
...
app/assets/javascripts/boards/components/issue_card_inner.js
View file @
7c4d25a4
...
...
@@ -157,11 +157,7 @@ gl.issueBoards.IssueCardInner = Vue.extend({
>
<img
class="avatar avatar-inline s20"
<<<<<<< HEAD
:src="assignee.avatarUrl"
=======
:src="assignee.avatar"
>>>>>>> 6ce1df41e175c7d62ca760b1e66cf1bf86150284
width="20"
height="20"
:alt="avatarUrlTitle(assignee)"
...
...
app/assets/javascripts/boards/models/assignee.js
View file @
7c4d25a4
...
...
@@ -5,7 +5,7 @@ class ListAssignee {
this
.
id
=
user
.
id
;
this
.
name
=
user
.
name
;
this
.
username
=
user
.
username
;
this
.
avatar
Url
=
user
.
avatar_url
;
this
.
avatar
=
user
.
avatar_url
;
}
}
...
...
app/assets/javascripts/boards/models/issue.js
View file @
7c4d25a4
...
...
@@ -17,10 +17,7 @@ class ListIssue {
this
.
assignees
=
[];
this
.
selected
=
false
;
this
.
position
=
obj
.
relative_position
||
Infinity
;
<<<<<<<
HEAD
this
.
milestone_id
=
obj
.
milestone_id
;
=======
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
if
(
obj
.
milestone
)
{
this
.
milestone
=
new
ListMilestone
(
obj
.
milestone
);
...
...
@@ -30,11 +27,7 @@ class ListIssue {
this
.
labels
.
push
(
new
ListLabel
(
label
));
});
<<<<<<<
HEAD
this
.
assignees
=
obj
.
assignees
.
map
(
a
=>
new
ListAssignee
(
a
));
=======
this
.
assignees
=
obj
.
assignees
.
map
(
a
=>
new
ListAssignee
(
a
,
defaultAvatar
));
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
}
addLabel
(
label
)
{
...
...
app/assets/javascripts/boards/stores/boards_store.js
View file @
7c4d25a4
...
...
@@ -23,18 +23,13 @@ gl.issueBoards.BoardsStore = {
this
.
state
.
lists
=
[];
this
.
filter
.
path
=
gl
.
utils
.
getUrlParamsArray
().
join
(
'
&
'
);
},
<<<<<<<
HEAD
createNewListDropdownData
()
{
this
.
state
.
currentBoard
=
{};
this
.
state
.
currentPage
=
''
;
this
.
state
.
reload
=
false
;
},
addList
(
listObj
)
{
const
list
=
new
List
(
listObj
);
=======
addList
(
listObj
,
defaultAvatar
)
{
const
list
=
new
List
(
listObj
,
defaultAvatar
);
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
this
.
state
.
lists
.
push
(
list
);
return
list
;
...
...
app/assets/javascripts/dispatcher.js
View file @
7c4d25a4
...
...
@@ -53,12 +53,9 @@ import UserCallout from './user_callout';
import
{
ProtectedTagCreate
,
ProtectedTagEditList
}
from
'
./protected_tags
'
;
import
ShortcutsWiki
from
'
./shortcuts_wiki
'
;
import
BlobViewer
from
'
./blob/viewer/index
'
;
<<<<<<<
HEAD
import
GeoNodes
from
'
./geo_nodes
'
;
import
ServiceDeskRoot
from
'
./projects/settings_service_desk/service_desk_root
'
;
=======
import
AutoWidthDropdownSelect
from
'
./issuable/auto_width_dropdown_select
'
;
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
const
ShortcutsBlob
=
require
(
'
./shortcuts_blob
'
);
...
...
app/assets/javascripts/filtered_search/filtered_search_manager.js
View file @
7c4d25a4
...
...
@@ -13,17 +13,13 @@ class FilteredSearchManager {
this
.
tokensContainer
=
this
.
container
.
querySelector
(
'
.tokens-container
'
);
this
.
filteredSearchTokenKeys
=
gl
.
FilteredSearchTokenKeys
;
<<<<<<<
HEAD
if
(
page
===
'
issues
'
||
page
===
'
boards
'
)
{
this
.
filteredSearchTokenKeys
=
gl
.
FilteredSearchTokenKeysWithWeights
;
}
this
.
recentSearchesStore
=
new
RecentSearchesStore
();
=======
this
.
recentSearchesStore
=
new
RecentSearchesStore
({
isLocalStorageAvailable
:
RecentSearchesService
.
isAvailable
(),
});
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
let
recentSearchesKey
=
'
issue-recent-searches
'
;
if
(
page
===
'
merge_requests
'
)
{
recentSearchesKey
=
'
merge-request-recent-searches
'
;
...
...
app/assets/javascripts/members.js
View file @
7c4d25a4
...
...
@@ -44,7 +44,6 @@
return
$el
.
text
();
},
clicked
:
(
options
)
=>
{
<<<<<<<
HEAD
const
$link
=
options
.
$el
;
if
(
!
$link
.
data
(
'
revert
'
))
{
...
...
@@ -60,9 +59,6 @@
$dateInput
.
enable
();
});
}
=======
this
.
formSubmit
(
null
,
options
.
$el
);
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
},
});
});
...
...
app/assets/javascripts/milestone_select.js
View file @
7c4d25a4
...
...
@@ -126,7 +126,6 @@
return
$value
.
css
(
'
display
'
,
''
);
},
vue
:
$dropdown
.
hasClass
(
'
js-issue-board-sidebar
'
),
<<<<<<<
HEAD
hideRow
:
function
(
milestone
)
{
if
(
$
(
'
html
'
).
hasClass
(
'
issue-boards-page
'
)
&&
!
$dropdown
.
hasClass
(
'
js-issue-board-sidebar
'
)
&&
!
$dropdown
.
closest
(
'
.add-issues-modal
'
).
length
&&
gl
.
issueBoards
.
BoardsStore
.
state
.
currentBoard
.
milestone
)
{
...
...
@@ -143,8 +142,6 @@
return
true
;
},
=======
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
clicked
:
function
(
options
)
{
const
{
$el
,
e
}
=
options
;
let
selected
=
options
.
selectedObj
;
...
...
app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js
View file @
7c4d25a4
...
...
@@ -54,12 +54,8 @@
}
},
clicked
(
opts
)
{
<<<<<<<
HEAD
const
{
$el
,
e
}
=
opts
;
const
item
=
opts
.
selectedObj
;
=======
const
{
e
}
=
opts
;
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
e
.
preventDefault
();
...
...
app/assets/javascripts/sidebar/components/assignees/assignees.js
View file @
7c4d25a4
...
...
@@ -84,11 +84,7 @@ export default {
return
!
this
.
showLess
||
(
index
<
this
.
defaultRenderCount
&&
this
.
showLess
);
},
avatarUrl
(
user
)
{
<<<<<<<
HEAD
return
user
.
avatarUrl
||
user
.
avatar_url
;
=======
return
user
.
avatar
||
user
.
avatar_url
;
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
},
assigneeUrl
(
user
)
{
return
`
${
this
.
rootPath
}${
user
.
username
}
`
;
...
...
app/assets/javascripts/sidebar/components/assignees/sidebar_assignees.js
View file @
7c4d25a4
...
...
@@ -33,23 +33,12 @@ export default {
saveAssignees
()
{
this
.
loading
=
true
;
<<<<<<<
HEAD
this
.
mediator
.
saveAssignees
(
this
.
field
)
.
then
(()
=>
{
this
.
loading
=
false
;
})
.
catch
(()
=>
{
this
.
loading
=
false
;
=======
function
setLoadingFalse
()
{
this
.
loading
=
false
;
}
this
.
mediator
.
saveAssignees
(
this
.
field
)
.
then
(
setLoadingFalse
.
bind
(
this
))
.
catch
(()
=>
{
setLoadingFalse
();
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
return
new
Flash
(
'
Error occurred when saving assignees
'
);
});
},
...
...
app/assets/javascripts/sidebar/components/time_tracking/sidebar_time_tracking.js
View file @
7c4d25a4
...
...
@@ -17,17 +17,6 @@ export default {
},
methods
:
{
listenForSlashCommands
()
{
<<<<<<<
HEAD
$
(
document
).
on
(
'
ajax:success
'
,
'
.gfm-form
'
,
(
e
,
data
)
=>
{
const
subscribedCommands
=
[
'
spend_time
'
,
'
time_estimate
'
];
const
changedCommands
=
data
.
commands_changes
?
Object
.
keys
(
data
.
commands_changes
)
:
[];
if
(
changedCommands
&&
_
.
intersection
(
subscribedCommands
,
changedCommands
).
length
)
{
this
.
mediator
.
fetch
();
}
});
=======
$
(
document
).
on
(
'
ajax:success
'
,
'
.gfm-form
'
,
this
.
slashCommandListened
);
},
slashCommandListened
(
e
,
data
)
{
...
...
@@ -43,7 +32,6 @@ export default {
if
(
changedCommands
&&
_
.
intersection
(
subscribedCommands
,
changedCommands
).
length
)
{
this
.
mediator
.
fetch
();
}
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
},
},
mounted
()
{
...
...
app/assets/javascripts/sidebar/sidebar_bundle.js
View file @
7c4d25a4
...
...
@@ -4,11 +4,7 @@ import sidebarAssignees from './components/assignees/sidebar_assignees';
import
Mediator
from
'
./sidebar_mediator
'
;
<<<<<<<
HEAD
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
=======
function
domContentLoaded
()
{
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
const
mediator
=
new
Mediator
(
gl
.
sidebarOptions
);
mediator
.
fetch
();
...
...
@@ -21,13 +17,8 @@ function domContentLoaded() {
}
new
Vue
(
sidebarTimeTracking
).
$mount
(
'
#issuable-time-tracker
'
);
<<<<<<<
HEAD
});
=======
}
document
.
addEventListener
(
'
DOMContentLoaded
'
,
domContentLoaded
);
export
default
domContentLoaded
;
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
app/assets/javascripts/sidebar/sidebar_mediator.js
View file @
7c4d25a4
...
...
@@ -30,13 +30,8 @@ export default class SidebarMediator {
this
.
service
.
get
()
.
then
((
response
)
=>
{
const
data
=
response
.
json
();
<<<<<<<
HEAD
this
.
store
.
processAssigneeData
(
data
);
this
.
store
.
processTimeTrackingData
(
data
);
=======
this
.
store
.
setAssigneeData
(
data
);
this
.
store
.
setTimeTrackingData
(
data
);
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
})
.
catch
(()
=>
new
Flash
(
'
Error occured when fetching sidebar data
'
));
}
...
...
app/assets/javascripts/sidebar/stores/sidebar_store.js
View file @
7c4d25a4
...
...
@@ -17,21 +17,13 @@ export default class SidebarStore {
return
SidebarStore
.
singleton
;
}
<<<<<<<
HEAD
processAssigneeData
(
data
)
{
=======
setAssigneeData
(
data
)
{
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
if
(
data
.
assignees
)
{
this
.
assignees
=
data
.
assignees
;
}
}
<<<<<<<
HEAD
processTimeTrackingData
(
data
)
{
=======
setTimeTrackingData
(
data
)
{
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
this
.
timeEstimate
=
data
.
time_estimate
;
this
.
totalTimeSpent
=
data
.
total_time_spent
;
this
.
humanTimeEstimate
=
data
.
human_time_estimate
;
...
...
app/assets/stylesheets/pages/boards.scss
View file @
7c4d25a4
...
...
@@ -284,18 +284,10 @@
.avatar-counter
{
display
:
none
;
vertical-align
:
middle
;
<<<<<<<
HEAD
line-height
:
18px
;
height
:
20px
;
padding-left
:
3px
;
padding-right
:
3px
;
=======
min-width
:
20px
;
line-height
:
19px
;
height
:
20px
;
padding-left
:
2px
;
padding-right
:
2px
;
>>>>>>>
6ce1df41e175c7d62ca760b1e66cf1bf86150284
border-radius
:
2em
;
}
...
...
app/assets/stylesheets/pages/issuable.scss
View file @
7c4d25a4
...
...
@@ -450,10 +450,6 @@
margin
:
-5px
;
}
<<<<<<<
HEAD
=======
>>>>>>>
6ce1df41e175c7d62ca760b1e66cf1bf86150284
.user-list
{
display
:
flex
;
flex-wrap
:
wrap
;
...
...
app/views/layouts/project.html.haml
View file @
7c4d25a4
...
...
@@ -8,10 +8,7 @@
-
if
current_user
:javascript
window
.
uploads_path
=
"
#{
namespace_project_uploads_path
project
.
namespace
,
project
}
"
;
<
<<<<<<
HEAD
window
.
preview_markdown_path
=
"
#{
preview_markdown_path
(
project
)
}
"
;
==
=====
>
>>>>>> 6ce1df41e175c7d62ca760b1e66cf1bf86150284
-
content_for
:header_content
do
.js-dropdown-menu-projects
...
...
app/views/projects/boards/components/sidebar/_assignee.html.haml
View file @
7c4d25a4
...
...
@@ -16,11 +16,7 @@
"v-if"
=>
"issue.assignees"
,
"v-for"
=>
"assignee in issue.assignees"
}
.dropdown
<
<<<<<<
HEAD
%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
if
current_user
),
current_user:
"true"
,
project_id:
@project
.
id
,
null_user:
"true"
,
multi_select:
"true"
,
dropdown:
{
header:
'Assignee(s)'
}
},
=======
%
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
if
current_user
),
current_user:
"true"
,
project_id:
@project
.
id
,
null_user:
"true"
,
multi_select:
"true"
,
'max-select'
=>
1
,
dropdown:
{
header:
'Assignee'
}
},
>>>>>>>
6
ce1df41e175c7d62ca760b1e66cf1bf86150284
":data-issuable-id"
=>
"issue.id"
,
":data-selected"
=>
"assigneeId"
,
":data-issue-update"
=>
"'#{namespace_project_issues_path(@project.namespace, @project)}/' + issue.id + '.json'"
}
...
...
app/views/projects/issues/show.html.haml
View file @
7c4d25a4
...
...
@@ -50,11 +50,7 @@
=
link_to
'Edit'
,
edit_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
@issue
),
class:
'hidden-xs hidden-sm btn btn-grouped issuable-edit'
.issue-details.issuable-details
<
<<<<<<
HEAD
.detail-page-description.content-block
{
class:
(
'hide-bottom-border'
unless
@issue
.
description
.
present?
)
}
==
=====
.detail-page-description.content-block
>
>>>>>> 6ce1df41e175c7d62ca760b1e66cf1bf86150284
.issue-title-data.hidden
{
"data"
=>
{
"endpoint"
=>
rendered_title_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
@issue
),
"can-update-tasks-class"
=>
can?
(
current_user
,
:update_issue
,
@issue
)
?
'js-task-list-container'
:
''
,
}
}
...
...
app/views/projects/protected_branches/_create_protected_branch.html.haml
View file @
7c4d25a4
...
...
@@ -24,22 +24,15 @@
.col-md-10
.merge_access_levels-container
=
dropdown_tag
(
'Select'
,
<<<<<<<
HEAD
options:
{
toggle_class:
'js-allowed-to-merge js-multiselect wide'
,
dropdown_class:
'dropdown-menu-user dropdown-menu-selectable capitalize-header'
,
filter:
true
,
data:
{
input_id:
'merge_access_levels_attributes'
,
default_label:
'Select'
}
})
==
=====
options: { toggle_class: 'js-allowed-to-merge wide',
dropdown_class: 'dropdown-menu-selectable capitalize-header',
data: { field_name: 'protected_branch[merge_access_levels_attributes][0][access_level]', input_id: 'merge_access_levels_attributes' }})
>>>>>>> 6ce1df41e175c7d62ca760b1e66cf1bf86150284
.form-group
%label
.col-md-2.text-right
{
for:
'push_access_levels_attributes'
}
Allowed to push:
.col-md-10
.push_access_levels-container
=
dropdown_tag
(
'Select'
,
<<<<<<<
HEAD
options:
{
toggle_class:
'js-allowed-to-push js-multiselect wide'
,
dropdown_class:
'dropdown-menu-user dropdown-menu-selectable capitalize-header'
,
filter:
true
,
data:
{
input_id:
'push_access_levels_attributes'
,
default_label:
'Select'
}
})
...
...
@@ -47,11 +40,6 @@
Only groups that
=
link_to
'have this project shared'
,
help_page_path
(
'workflow/share_projects_with_other_groups'
)
can be added here
==
=====
options: { toggle_class: 'js-allowed-to-push wide',
dropdown_class: 'dropdown-menu-selectable capitalize-header',
data: { field_name: 'protected_branch[push_access_levels_attributes][0][access_level]', input_id: 'push_access_levels_attributes' }})
>>>>>>> 6ce1df41e175c7d62ca760b1e66cf1bf86150284
.panel-footer
=
f
.
submit
'Protect'
,
class:
'btn-create btn'
,
disabled:
true
app/views/projects/protected_branches/_update_protected_branch.html.haml
View file @
7c4d25a4
%td
=
hidden_field_tag
"allowed_to_merge_
#{
protected_branch
.
id
}
"
,
protected_branch
.
merge_access_levels
.
first
.
access_level
=
dropdown_tag
(
(
protected_branch
.
merge_access_levels
.
first
.
humanize
||
'Select'
)
,
<<<<<<<
HEAD
options:
{
toggle_class:
'js-allowed-to-merge'
,
dropdown_class:
'dropdown-menu-selectable js-allowed-to-merge-container capitalize-header'
,
==
=====
options: { toggle_class: 'js-allowed-to-merge', dropdown_class: 'dropdown-menu-selectable js-allowed-to-merge-container capitalize-header',
>>>>>>> 6ce1df41e175c7d62ca760b1e66cf1bf86150284
data:
{
field_name:
"allowed_to_merge_
#{
protected_branch
.
id
}
"
,
access_level_id:
protected_branch
.
merge_access_levels
.
first
.
id
}})
%td
=
hidden_field_tag
"allowed_to_push_
#{
protected_branch
.
id
}
"
,
protected_branch
.
push_access_levels
.
first
.
access_level
=
dropdown_tag
(
(
protected_branch
.
push_access_levels
.
first
.
humanize
||
'Select'
)
,
<<<<<<<
HEAD
options:
{
toggle_class:
'js-allowed-to-push'
,
dropdown_class:
'dropdown-menu-selectable js-allowed-to-push-container capitalize-header'
,
==
=====
options: { toggle_class: 'js-allowed-to-push', dropdown_class: 'dropdown-menu-selectable js-allowed-to-push-container capitalize-header',
>>>>>>> 6ce1df41e175c7d62ca760b1e66cf1bf86150284
data:
{
field_name:
"allowed_to_push_
#{
protected_branch
.
id
}
"
,
access_level_id:
protected_branch
.
push_access_levels
.
first
.
id
}})
app/views/shared/issuable/_sidebar.html.haml
View file @
7c4d25a4
...
...
@@ -52,7 +52,6 @@
.selectbox.hide-collapsed
-
issuable
.
assignees
.
each
do
|
assignee
|
=
hidden_field_tag
"
#{
issuable
.
to_ability_name
}
[assignee_ids][]"
,
assignee
.
id
,
id:
nil
<
<<<<<<
HEAD
-
options
=
{
toggle_class:
'js-user-search js-author-search'
,
title:
'Assign to'
,
filter:
true
,
dropdown_class:
'dropdown-menu-user dropdown-menu-selectable dropdown-menu-author'
,
placeholder:
'Search users'
,
data:
{
first_user:
(
current_user
.
username
if
current_user
),
current_user:
true
,
project_id:
(
@project
.
id
if
@project
),
author_id:
issuable
.
author_id
,
field_name:
"
#{
issuable
.
to_ability_name
}
[assignee_id]"
,
issue_update:
issuable_json_path
(
issuable
),
ability_name:
issuable
.
to_ability_name
,
null_user:
true
}
}
...
...
@@ -60,25 +59,11 @@
-
if
issuable
.
assignees
.
length
==
0
=
hidden_field_tag
"
#{
issuable
.
to_ability_name
}
[assignee_ids][]"
,
0
,
id:
nil
-
title
=
'Select assignee(s)'
==
=====
-
options
=
{
toggle_class:
'js-user-search js-author-search'
,
title:
'Assign to'
,
filter:
true
,
dropdown_class:
'dropdown-menu-user dropdown-menu-selectable dropdown-menu-author'
,
placeholder:
'Search users'
,
data:
{
first_user:
(
current_user
.
username
if
current_user
),
current_user:
true
,
project_id:
(
@project
.
id
if
@project
),
author_id:
issuable
.
author_id
,
field_name:
"
#{
issuable
.
to_ability_name
}
[assignee_ids][]"
,
issue_update:
issuable_json_path
(
issuable
),
ability_name:
issuable
.
to_ability_name
,
null_user:
true
}
}
-
if
issuable
.
instance_of?
(
Issue
)
-
if
issuable
.
assignees
.
length
==
0
=
hidden_field_tag
"
#{
issuable
.
to_ability_name
}
[assignee_ids][]"
,
0
,
id:
nil
-
title
=
'Select assignee'
>
>>>>>> 6ce1df41e175c7d62ca760b1e66cf1bf86150284
-
options
[
:toggle_class
]
+=
' js-multiselect js-save-user-data'
-
options
[
:data
][
:field_name
]
=
"
#{
issuable
.
to_ability_name
}
[assignee_ids][]"
-
options
[
:data
][
:multi_select
]
=
true
-
options
[
:data
][
'dropdown-title'
]
=
title
<
<<<<<<
HEAD
-
options
[
:data
][
'dropdown-header'
]
=
'Assignee(s)'
==
=====
-
options
[
:data
][
'dropdown-header'
]
=
'Assignee'
-
options
[
:data
][
'max-select'
]
=
1
>
>>>>>> 6ce1df41e175c7d62ca760b1e66cf1bf86150284
-
else
-
title
=
'Select assignee'
...
...
app/views/shared/issuable/form/_metadata.html.haml
View file @
7c4d25a4
...
...
@@ -20,11 +20,7 @@
-
if
issuable
.
assignees
.
length
===
0
=
hidden_field_tag
"
#{
issuable
.
to_ability_name
}
[assignee_ids][]"
,
0
,
id:
nil
,
data:
{
meta:
''
}
<
<<<<<<
HEAD
=
dropdown_tag
(
users_dropdown_label
(
issuable
.
assignees
),
options:
issue_dropdown_options
(
issuable
,
true
))
==
=====
=
dropdown_tag
(
users_dropdown_label
(
issuable
.
assignees
),
options:
issue_dropdown_options
(
issuable
,
false
))
>
>>>>>> 6ce1df41e175c7d62ca760b1e66cf1bf86150284
=
link_to
'Assign to me'
,
'#'
,
class:
"assign-to-me-link
#{
'hide'
if
issuable
.
assignees
.
include?
(
current_user
)
}
"
-
else
=
form
.
label
:assignee_id
,
"Assignee"
,
class:
"control-label
#{
"col-lg-4"
if
has_due_date
}
"
...
...
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