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
b04b3d1d
Commit
b04b3d1d
authored
Oct 24, 2017
by
Simon Knox
Committed by
Oswaldo Ferreira
Oct 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apply changes for JS and CSS from gitlab-ee!2912
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2912/
parent
18db1524
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
183 additions
and
65 deletions
+183
-65
app/assets/javascripts/boards/filtered_search_boards.js
app/assets/javascripts/boards/filtered_search_boards.js
+6
-3
app/assets/javascripts/boards/stores/boards_store.js
app/assets/javascripts/boards/stores/boards_store.js
+5
-3
app/assets/javascripts/filtered_search/dropdown_utils.js
app/assets/javascripts/filtered_search/dropdown_utils.js
+10
-0
app/assets/javascripts/filtered_search/filtered_search_manager.js
...ts/javascripts/filtered_search/filtered_search_manager.js
+5
-5
app/assets/javascripts/filtered_search/filtered_search_visual_tokens.js
...ascripts/filtered_search/filtered_search_visual_tokens.js
+4
-11
app/assets/javascripts/labels_select.js
app/assets/javascripts/labels_select.js
+9
-4
app/assets/javascripts/milestone_select.js
app/assets/javascripts/milestone_select.js
+12
-5
app/assets/javascripts/users_select.js
app/assets/javascripts/users_select.js
+6
-1
app/assets/javascripts/vue_shared/components/loading_icon.vue
...assets/javascripts/vue_shared/components/loading_icon.vue
+7
-1
app/assets/javascripts/vue_shared/components/popup_dialog.vue
...assets/javascripts/vue_shared/components/popup_dialog.vue
+74
-19
app/assets/stylesheets/framework/common.scss
app/assets/stylesheets/framework/common.scss
+3
-0
app/assets/stylesheets/framework/dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+1
-0
app/assets/stylesheets/framework/modal.scss
app/assets/stylesheets/framework/modal.scss
+8
-0
app/assets/stylesheets/framework/tw_bootstrap_variables.scss
app/assets/stylesheets/framework/tw_bootstrap_variables.scss
+33
-0
app/assets/stylesheets/pages/repo.scss
app/assets/stylesheets/pages/repo.scss
+0
-13
No files found.
app/assets/javascripts/boards/filtered_search_boards.js
View file @
b04b3d1d
...
@@ -11,7 +11,8 @@ export default class FilteredSearchBoards extends gl.FilteredSearchManager {
...
@@ -11,7 +11,8 @@ export default class FilteredSearchBoards extends gl.FilteredSearchManager {
// Issue boards is slightly different, we handle all the requests async
// Issue boards is slightly different, we handle all the requests async
// instead or reloading the page, we just re-fire the list ajax requests
// instead or reloading the page, we just re-fire the list ajax requests
this
.
isHandledAsync
=
true
;
this
.
isHandledAsync
=
true
;
this
.
cantEdit
=
cantEdit
;
this
.
cantEdit
=
cantEdit
.
filter
(
i
=>
typeof
i
===
'
string
'
);
this
.
cantEditWithValue
=
cantEdit
.
filter
(
i
=>
typeof
i
===
'
object
'
);
}
}
updateObject
(
path
)
{
updateObject
(
path
)
{
...
@@ -42,7 +43,9 @@ export default class FilteredSearchBoards extends gl.FilteredSearchManager {
...
@@ -42,7 +43,9 @@ export default class FilteredSearchBoards extends gl.FilteredSearchManager {
this
.
filteredSearchInput
.
dispatchEvent
(
new
Event
(
'
input
'
));
this
.
filteredSearchInput
.
dispatchEvent
(
new
Event
(
'
input
'
));
}
}
canEdit
(
tokenName
)
{
canEdit
(
tokenName
,
tokenValue
)
{
return
this
.
cantEdit
.
indexOf
(
tokenName
)
===
-
1
;
if
(
this
.
cantEdit
.
includes
(
tokenName
))
return
false
;
return
this
.
cantEditWithValue
.
findIndex
(
token
=>
token
.
name
===
tokenName
&&
token
.
value
===
tokenValue
)
===
-
1
;
}
}
}
}
app/assets/javascripts/boards/stores/boards_store.js
View file @
b04b3d1d
...
@@ -14,16 +14,18 @@ gl.issueBoards.BoardsStore = {
...
@@ -14,16 +14,18 @@ gl.issueBoards.BoardsStore = {
},
},
state
:
{},
state
:
{},
detail
:
{
detail
:
{
issue
:
{}
issue
:
{}
,
},
},
moving
:
{
moving
:
{
issue
:
{},
issue
:
{},
list
:
{}
list
:
{}
,
},
},
create
()
{
create
()
{
this
.
state
.
lists
=
[];
this
.
state
.
lists
=
[];
this
.
filter
.
path
=
getUrlParamsArray
().
join
(
'
&
'
);
this
.
filter
.
path
=
getUrlParamsArray
().
join
(
'
&
'
);
this
.
detail
=
{
issue
:
{}
};
this
.
detail
=
{
issue
:
{},
};
},
},
addList
(
listObj
,
defaultAvatar
)
{
addList
(
listObj
,
defaultAvatar
)
{
const
list
=
new
List
(
listObj
,
defaultAvatar
);
const
list
=
new
List
(
listObj
,
defaultAvatar
);
...
...
app/assets/javascripts/filtered_search/dropdown_utils.js
View file @
b04b3d1d
...
@@ -147,6 +147,16 @@ class DropdownUtils {
...
@@ -147,6 +147,16 @@ class DropdownUtils {
return
dataValue
!==
null
;
return
dataValue
!==
null
;
}
}
static
getVisualTokenValues
(
visualToken
)
{
const
tokenName
=
visualToken
&&
visualToken
.
querySelector
(
'
.name
'
).
textContent
.
trim
();
let
tokenValue
=
visualToken
&&
visualToken
.
querySelector
(
'
.value
'
)
&&
visualToken
.
querySelector
(
'
.value
'
).
textContent
.
trim
();
if
(
tokenName
===
'
label
'
&&
tokenValue
)
{
// remove leading symbol and wrapping quotes
tokenValue
=
tokenValue
.
replace
(
/^~
(
"|'
)?(
.*
)
/
,
'
$2
'
).
replace
(
/
(
"|'
)
$/
,
''
);
}
return
{
tokenName
,
tokenValue
};
}
// Determines the full search query (visual tokens + input)
// Determines the full search query (visual tokens + input)
static
getSearchQuery
(
untilInput
=
false
)
{
static
getSearchQuery
(
untilInput
=
false
)
{
const
container
=
FilteredSearchContainer
.
container
;
const
container
=
FilteredSearchContainer
.
container
;
...
...
app/assets/javascripts/filtered_search/filtered_search_manager.js
View file @
b04b3d1d
...
@@ -185,8 +185,8 @@ class FilteredSearchManager {
...
@@ -185,8 +185,8 @@ class FilteredSearchManager {
if
(
e
.
keyCode
===
8
||
e
.
keyCode
===
46
)
{
if
(
e
.
keyCode
===
8
||
e
.
keyCode
===
46
)
{
const
{
lastVisualToken
}
=
gl
.
FilteredSearchVisualTokens
.
getLastVisualTokenBeforeInput
();
const
{
lastVisualToken
}
=
gl
.
FilteredSearchVisualTokens
.
getLastVisualTokenBeforeInput
();
const
sanitizedTokenName
=
lastVisualToken
&&
lastVisualToken
.
querySelector
(
'
.name
'
).
textContent
.
trim
(
);
const
{
tokenName
,
tokenValue
}
=
gl
.
DropdownUtils
.
getVisualTokenValues
(
lastVisualToken
);
const
canEdit
=
sanitizedTokenName
&&
this
.
canEdit
&&
this
.
canEdit
(
sanitizedTokenNam
e
);
const
canEdit
=
tokenName
&&
this
.
canEdit
&&
this
.
canEdit
(
tokenName
,
tokenValu
e
);
if
(
this
.
filteredSearchInput
.
value
===
''
&&
lastVisualToken
&&
canEdit
)
{
if
(
this
.
filteredSearchInput
.
value
===
''
&&
lastVisualToken
&&
canEdit
)
{
this
.
filteredSearchInput
.
value
=
gl
.
FilteredSearchVisualTokens
.
getLastTokenPartial
();
this
.
filteredSearchInput
.
value
=
gl
.
FilteredSearchVisualTokens
.
getLastTokenPartial
();
gl
.
FilteredSearchVisualTokens
.
removeLastTokenPartial
();
gl
.
FilteredSearchVisualTokens
.
removeLastTokenPartial
();
...
@@ -336,8 +336,8 @@ class FilteredSearchManager {
...
@@ -336,8 +336,8 @@ class FilteredSearchManager {
let
canClearToken
=
t
.
classList
.
contains
(
'
js-visual-token
'
);
let
canClearToken
=
t
.
classList
.
contains
(
'
js-visual-token
'
);
if
(
canClearToken
)
{
if
(
canClearToken
)
{
const
tokenKey
=
t
.
querySelector
(
'
.name
'
).
textContent
.
trim
(
);
const
{
tokenName
,
tokenValue
}
=
gl
.
DropdownUtils
.
getVisualTokenValues
(
t
);
canClearToken
=
this
.
canEdit
&&
this
.
canEdit
(
token
Key
);
canClearToken
=
this
.
canEdit
&&
this
.
canEdit
(
token
Name
,
tokenValue
);
}
}
if
(
canClearToken
)
{
if
(
canClearToken
)
{
...
@@ -469,7 +469,7 @@ class FilteredSearchManager {
...
@@ -469,7 +469,7 @@ class FilteredSearchManager {
}
}
hasFilteredSearch
=
true
;
hasFilteredSearch
=
true
;
const
canEdit
=
this
.
canEdit
&&
this
.
canEdit
(
sanitizedKey
);
const
canEdit
=
this
.
canEdit
&&
this
.
canEdit
(
sanitizedKey
,
sanitizedValue
);
gl
.
FilteredSearchVisualTokens
.
addFilterVisualToken
(
gl
.
FilteredSearchVisualTokens
.
addFilterVisualToken
(
sanitizedKey
,
sanitizedKey
,
`
${
symbol
}${
quotationsToUse
}${
sanitizedValue
}${
quotationsToUse
}
`
,
`
${
symbol
}${
quotationsToUse
}${
sanitizedValue
}${
quotationsToUse
}
`
,
...
...
app/assets/javascripts/filtered_search/filtered_search_visual_tokens.js
View file @
b04b3d1d
...
@@ -38,21 +38,14 @@ class FilteredSearchVisualTokens {
...
@@ -38,21 +38,14 @@ class FilteredSearchVisualTokens {
}
}
static
createVisualTokenElementHTML
(
canEdit
=
true
)
{
static
createVisualTokenElementHTML
(
canEdit
=
true
)
{
let
removeTokenMarkup
=
''
;
if
(
canEdit
)
{
removeTokenMarkup
=
`
<div class="remove-token" role="button">
<i class="fa fa-close"></i>
</div>
`
;
}
return
`
return
`
<div class="
selectable
" role="button">
<div class="
${
canEdit
?
'
selectable
'
:
'
hidden
'
}
" role="button">
<div class="name"></div>
<div class="name"></div>
<div class="value-container">
<div class="value-container">
<div class="value"></div>
<div class="value"></div>
${
removeTokenMarkup
}
<div class="remove-token" role="button">
<i class="fa fa-close"></i>
</div>
</div>
</div>
</div>
</div>
`
;
`
;
...
...
app/assets/javascripts/labels_select.js
View file @
b04b3d1d
...
@@ -8,7 +8,7 @@ import CreateLabelDropdown from './create_label';
...
@@ -8,7 +8,7 @@ import CreateLabelDropdown from './create_label';
(
function
()
{
(
function
()
{
this
.
LabelsSelect
=
(
function
()
{
this
.
LabelsSelect
=
(
function
()
{
function
LabelsSelect
(
els
)
{
function
LabelsSelect
(
els
,
options
=
{}
)
{
var
_this
,
$els
;
var
_this
,
$els
;
_this
=
this
;
_this
=
this
;
...
@@ -58,6 +58,7 @@ import CreateLabelDropdown from './create_label';
...
@@ -58,6 +58,7 @@ import CreateLabelDropdown from './create_label';
labelHTMLTemplate
=
_
.
template
(
'
<% _.each(labels, function(label){ %> <a href="<%- ["",issueURLSplit[1], issueURLSplit[2],""].join("/") %>issues?label_name[]=<%- encodeURIComponent(label.title) %>"> <span class="label has-tooltip color-label" title="<%- label.description %>" style="background-color: <%- label.color %>; color: <%- label.text_color %>;"> <%- label.title %> </span> </a> <% }); %>
'
);
labelHTMLTemplate
=
_
.
template
(
'
<% _.each(labels, function(label){ %> <a href="<%- ["",issueURLSplit[1], issueURLSplit[2],""].join("/") %>issues?label_name[]=<%- encodeURIComponent(label.title) %>"> <span class="label has-tooltip color-label" title="<%- label.description %>" style="background-color: <%- label.color %>; color: <%- label.text_color %>;"> <%- label.title %> </span> </a> <% }); %>
'
);
labelNoneHTMLTemplate
=
'
<span class="no-value">None</span>
'
;
labelNoneHTMLTemplate
=
'
<span class="no-value">None</span>
'
;
}
}
const
handleClick
=
options
.
handleClick
;
$sidebarLabelTooltip
.
tooltip
();
$sidebarLabelTooltip
.
tooltip
();
...
@@ -316,9 +317,9 @@ import CreateLabelDropdown from './create_label';
...
@@ -316,9 +317,9 @@ import CreateLabelDropdown from './create_label';
},
},
multiSelect
:
$dropdown
.
hasClass
(
'
js-multiselect
'
),
multiSelect
:
$dropdown
.
hasClass
(
'
js-multiselect
'
),
vue
:
$dropdown
.
hasClass
(
'
js-issue-board-sidebar
'
),
vue
:
$dropdown
.
hasClass
(
'
js-issue-board-sidebar
'
),
clicked
:
function
(
options
)
{
clicked
:
function
(
clickEvent
)
{
const
{
$el
,
e
,
isMarking
}
=
options
;
const
{
$el
,
e
,
isMarking
}
=
clickEvent
;
const
label
=
options
.
selectedObj
;
const
label
=
clickEvent
.
selectedObj
;
var
isIssueIndex
,
isMRIndex
,
page
,
boardsModel
;
var
isIssueIndex
,
isMRIndex
,
page
,
boardsModel
;
var
fadeOutLoader
=
()
=>
{
var
fadeOutLoader
=
()
=>
{
...
@@ -391,6 +392,10 @@ import CreateLabelDropdown from './create_label';
...
@@ -391,6 +392,10 @@ import CreateLabelDropdown from './create_label';
.
then
(
fadeOutLoader
)
.
then
(
fadeOutLoader
)
.
catch
(
fadeOutLoader
);
.
catch
(
fadeOutLoader
);
}
}
else
if
(
handleClick
)
{
e
.
preventDefault
();
handleClick
(
label
);
}
else
{
else
{
if
(
$dropdown
.
hasClass
(
'
js-multiselect
'
))
{
if
(
$dropdown
.
hasClass
(
'
js-multiselect
'
))
{
...
...
app/assets/javascripts/milestone_select.js
View file @
b04b3d1d
...
@@ -5,7 +5,7 @@ import _ from 'underscore';
...
@@ -5,7 +5,7 @@ import _ from 'underscore';
(
function
()
{
(
function
()
{
this
.
MilestoneSelect
=
(
function
()
{
this
.
MilestoneSelect
=
(
function
()
{
function
MilestoneSelect
(
currentProject
,
els
)
{
function
MilestoneSelect
(
currentProject
,
els
,
options
=
{}
)
{
var
_this
,
$els
;
var
_this
,
$els
;
if
(
currentProject
!=
null
)
{
if
(
currentProject
!=
null
)
{
_this
=
this
;
_this
=
this
;
...
@@ -136,19 +136,26 @@ import _ from 'underscore';
...
@@ -136,19 +136,26 @@ import _ from 'underscore';
},
},
opened
:
function
(
e
)
{
opened
:
function
(
e
)
{
const
$el
=
$
(
e
.
currentTarget
);
const
$el
=
$
(
e
.
currentTarget
);
if
(
$dropdown
.
hasClass
(
'
js-issue-board-sidebar
'
))
{
if
(
$dropdown
.
hasClass
(
'
js-issue-board-sidebar
'
)
||
options
.
handleClick
)
{
selectedMilestone
=
$dropdown
[
0
].
dataset
.
selected
||
selectedMilestoneDefault
;
selectedMilestone
=
$dropdown
[
0
].
dataset
.
selected
||
selectedMilestoneDefault
;
}
}
$
(
'
a.is-active
'
,
$el
).
removeClass
(
'
is-active
'
);
$
(
'
a.is-active
'
,
$el
).
removeClass
(
'
is-active
'
);
$
(
`[data-milestone-id="
${
selectedMilestone
}
"] > a`
,
$el
).
addClass
(
'
is-active
'
);
$
(
`[data-milestone-id="
${
selectedMilestone
}
"] > a`
,
$el
).
addClass
(
'
is-active
'
);
},
},
vue
:
$dropdown
.
hasClass
(
'
js-issue-board-sidebar
'
),
vue
:
$dropdown
.
hasClass
(
'
js-issue-board-sidebar
'
),
clicked
:
function
(
options
)
{
clicked
:
function
(
clickEvent
)
{
const
{
$el
,
e
}
=
options
;
const
{
$el
,
e
}
=
clickEvent
;
let
selected
=
options
.
selectedObj
;
let
selected
=
clickEvent
.
selectedObj
;
var
data
,
isIssueIndex
,
isMRIndex
,
isSelecting
,
page
,
boardsStore
;
var
data
,
isIssueIndex
,
isMRIndex
,
isSelecting
,
page
,
boardsStore
;
if
(
!
selected
)
return
;
if
(
!
selected
)
return
;
if
(
options
.
handleClick
)
{
e
.
preventDefault
();
options
.
handleClick
(
selected
);
return
;
}
page
=
$
(
'
body
'
).
attr
(
'
data-page
'
);
page
=
$
(
'
body
'
).
attr
(
'
data-page
'
);
isIssueIndex
=
page
===
'
projects:issues:index
'
;
isIssueIndex
=
page
===
'
projects:issues:index
'
;
isMRIndex
=
(
page
===
page
&&
page
===
'
projects:merge_requests:index
'
);
isMRIndex
=
(
page
===
page
&&
page
===
'
projects:merge_requests:index
'
);
...
...
app/assets/javascripts/users_select.js
View file @
b04b3d1d
...
@@ -6,7 +6,7 @@ import _ from 'underscore';
...
@@ -6,7 +6,7 @@ import _ from 'underscore';
// TODO: remove eventHub hack after code splitting refactor
// TODO: remove eventHub hack after code splitting refactor
window
.
emitSidebarEvent
=
window
.
emitSidebarEvent
||
$
.
noop
;
window
.
emitSidebarEvent
=
window
.
emitSidebarEvent
||
$
.
noop
;
function
UsersSelect
(
currentUser
,
els
)
{
function
UsersSelect
(
currentUser
,
els
,
options
=
{}
)
{
var
$els
;
var
$els
;
this
.
users
=
this
.
users
.
bind
(
this
);
this
.
users
=
this
.
users
.
bind
(
this
);
this
.
user
=
this
.
user
.
bind
(
this
);
this
.
user
=
this
.
user
.
bind
(
this
);
...
@@ -20,6 +20,8 @@ function UsersSelect(currentUser, els) {
...
@@ -20,6 +20,8 @@ function UsersSelect(currentUser, els) {
}
}
}
}
const
{
handleClick
}
=
options
;
$els
=
$
(
els
);
$els
=
$
(
els
);
if
(
!
els
)
{
if
(
!
els
)
{
...
@@ -442,6 +444,9 @@ function UsersSelect(currentUser, els) {
...
@@ -442,6 +444,9 @@ function UsersSelect(currentUser, els) {
}
}
if
(
$el
.
closest
(
'
.add-issues-modal
'
).
length
)
{
if
(
$el
.
closest
(
'
.add-issues-modal
'
).
length
)
{
gl
.
issueBoards
.
ModalStore
.
store
.
filter
[
$dropdown
.
data
(
'
field-name
'
)]
=
user
.
id
;
gl
.
issueBoards
.
ModalStore
.
store
.
filter
[
$dropdown
.
data
(
'
field-name
'
)]
=
user
.
id
;
}
else
if
(
handleClick
)
{
e
.
preventDefault
();
handleClick
(
user
,
isMarking
);
}
else
if
(
$dropdown
.
hasClass
(
'
js-filter-submit
'
)
&&
(
isIssueIndex
||
isMRIndex
))
{
}
else
if
(
$dropdown
.
hasClass
(
'
js-filter-submit
'
)
&&
(
isIssueIndex
||
isMRIndex
))
{
return
Issuable
.
filterResults
(
$dropdown
.
closest
(
'
form
'
));
return
Issuable
.
filterResults
(
$dropdown
.
closest
(
'
form
'
));
}
else
if
(
$dropdown
.
hasClass
(
'
js-filter-submit
'
))
{
}
else
if
(
$dropdown
.
hasClass
(
'
js-filter-submit
'
))
{
...
...
app/assets/javascripts/vue_shared/components/loading_icon.vue
View file @
b04b3d1d
...
@@ -18,6 +18,12 @@
...
@@ -18,6 +18,12 @@
required
:
false
,
required
:
false
,
default
:
false
,
default
:
false
,
},
},
class
:
{
type
:
String
,
required
:
false
,
default
:
''
,
},
},
},
computed
:
{
computed
:
{
...
@@ -25,7 +31,7 @@
...
@@ -25,7 +31,7 @@
return
this
.
inline
?
'
span
'
:
'
div
'
;
return
this
.
inline
?
'
span
'
:
'
div
'
;
},
},
cssClass
()
{
cssClass
()
{
return
`fa-
${
this
.
size
}
x
`
;
return
`fa-
${
this
.
size
}
x
${
this
.
class
}
`
.
trim
()
;
},
},
},
},
};
};
...
...
app/assets/javascripts/vue_shared/components/popup_dialog.vue
View file @
b04b3d1d
...
@@ -5,17 +5,30 @@ export default {
...
@@ -5,17 +5,30 @@ export default {
props
:
{
props
:
{
title
:
{
title
:
{
type
:
String
,
type
:
String
,
required
:
tru
e
,
required
:
fals
e
,
},
},
text
:
{
text
:
{
type
:
String
,
type
:
String
,
required
:
false
,
required
:
false
,
<<<<<<<
HEAD
=======
},
hideFooter
:
{
type
:
Boolean
,
required
:
false
,
default
:
false
,
>>>>>>>
e8a46294c0
...
apply
changes
for
JS
and
CSS
from
gitlab
-
ee
!
2912
},
},
kind
:
{
kind
:
{
type
:
String
,
type
:
String
,
required
:
false
,
required
:
false
,
default
:
'
primary
'
,
default
:
'
primary
'
,
},
},
modalDialogClass
:
{
type
:
String
,
required
:
false
,
default
:
''
,
},
closeKind
:
{
closeKind
:
{
type
:
String
,
type
:
String
,
required
:
false
,
required
:
false
,
...
@@ -30,6 +43,11 @@ export default {
...
@@ -30,6 +43,11 @@ export default {
type
:
String
,
type
:
String
,
required
:
true
,
required
:
true
,
},
},
submitDisabled
:
{
type
:
Boolean
,
required
:
false
,
default
:
false
,
},
},
},
computed
:
{
computed
:
{
...
@@ -57,26 +75,60 @@ export default {
...
@@ -57,26 +75,60 @@ export default {
</
script
>
</
script
>
<
template
>
<
template
>
<div
<div
class=
"modal-open"
>
class=
"modal popup-dialog"
<div
role=
"dialog"
class=
"modal popup-dialog"
tabindex=
"-1"
>
role=
"dialog"
<div
class=
"modal-dialog"
role=
"document"
>
tabindex=
"-1"
<div
class=
"modal-content"
>
>
<div
class=
"modal-header"
>
<div
<button
type=
"button"
:class=
"modalDialogClass"
class=
"close"
class=
"modal-dialog"
@
click=
"close"
role=
"document"
aria-label=
"Close"
>
>
<span
aria-hidden=
"true"
>
×
</span>
<div
class=
"modal-content"
>
</button>
<div
class=
"modal-header"
>
<h4
class=
"modal-title"
>
{{
this
.
title
}}
</h4>
<slot
name=
"header"
>
</div>
<h4
class=
"modal-title pull-left"
>
<div
class=
"modal-body"
>
{{
this
.
title
}}
<slot
name=
"body"
:text=
"text"
>
</h4>
<p>
{{
text
}}
</p>
<button
type=
"button"
class=
"close pull-right"
@
click=
"close"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</slot>
</div>
<div
class=
"modal-body"
>
<slot
name=
"body"
:text=
"text"
>
<p>
{{
this
.
text
}}
</p>
</slot>
</div>
<slot
name=
"footer"
>
<div
class=
"modal-footer"
v-if=
"!hideFooter"
>
<button
type=
"button"
class=
"btn btn-default pull-right"
@
click=
"close"
>
Cancel
</button>
<button
type=
"button"
class=
"btn pull-left"
:disabled=
"submitDisabled"
:class=
"btnKindClass"
@
click=
"emitSubmit(true)"
>
{{
primaryButtonLabel
}}
</button>
</div>
</slot>
</slot>
</div>
</div>
<<<<<<<
HEAD
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
<button
type=
"button"
type=
"button"
...
@@ -93,7 +145,10 @@ export default {
...
@@ -93,7 +145,10 @@ export default {
{{
primaryButtonLabel
}}
{{
primaryButtonLabel
}}
</button>
</button>
</div>
</div>
=======
>>>>>>> e8a46294c0... apply changes for JS and CSS from gitlab-ee!2912
</div>
</div>
</div>
</div>
<div
class=
"modal-backdrop fade in"
/>
</div>
</div>
</
template
>
</
template
>
app/assets/stylesheets/framework/common.scss
View file @
b04b3d1d
...
@@ -4,6 +4,9 @@
...
@@ -4,6 +4,9 @@
.cred
{
color
:
$common-red
;
}
.cred
{
color
:
$common-red
;
}
.cgreen
{
color
:
$common-green
;
}
.cgreen
{
color
:
$common-green
;
}
.cdark
{
color
:
$common-gray-dark
;
}
.cdark
{
color
:
$common-gray-dark
;
}
.text-secondary
{
color
:
$gl-text-color-secondary
;
}
/** COMMON CLASSES **/
/** COMMON CLASSES **/
.prepend-top-0
{
margin-top
:
0
;
}
.prepend-top-0
{
margin-top
:
0
;
}
...
...
app/assets/stylesheets/framework/dropdowns.scss
View file @
b04b3d1d
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
.dropdown-menu-nav
{
.dropdown-menu-nav
{
@include
set-visible
;
@include
set-visible
;
display
:
block
;
display
:
block
;
min-height
:
40px
;
@media
(
max-width
:
$screen-xs-max
)
{
@media
(
max-width
:
$screen-xs-max
)
{
width
:
100%
;
width
:
100%
;
...
...
app/assets/stylesheets/framework/modal.scss
View file @
b04b3d1d
...
@@ -42,3 +42,11 @@ body.modal-open {
...
@@ -42,3 +42,11 @@ body.modal-open {
width
:
98%
;
width
:
98%
;
}
}
}
}
.modal.popup-dialog
{
display
:
block
;
}
.modal-body
{
background-color
:
$modal-body-bg
;
}
app/assets/stylesheets/framework/tw_bootstrap_variables.scss
View file @
b04b3d1d
...
@@ -164,3 +164,36 @@ $pre-border-color: $border-color;
...
@@ -164,3 +164,36 @@ $pre-border-color: $border-color;
$table-bg-accent
:
$gray-light
;
$table-bg-accent
:
$gray-light
;
$zindex-popover
:
900
;
$zindex-popover
:
900
;
//== Modals
//
//##
//** Padding applied to the modal body
$modal-inner-padding
:
$gl-padding
;
//** Padding applied to the modal title
$modal-title-padding
:
$gl-padding
;
//** Modal title line-height
// $modal-title-line-height: $line-height-base
//** Background color of modal content area
$modal-content-bg
:
$gray-light
;
$modal-body-bg
:
$white-light
;
//** Modal content border color
// $modal-content-border-color: rgba(0,0,0,.2)
//** Modal content border color **for IE8**
// $modal-content-fallback-border-color: #999
//** Modal backdrop background color
// $modal-backdrop-bg: #000
//** Modal backdrop opacity
// $modal-backdrop-opacity: .5
//** Modal header border color
// $modal-header-border-color: #e5e5e5
//** Modal footer border color
// $modal-footer-border-color: $modal-header-border-color
// $modal-lg: 900px
// $modal-md: 600px
// $modal-sm: 300px
app/assets/stylesheets/pages/repo.scss
View file @
b04b3d1d
...
@@ -7,19 +7,6 @@
...
@@ -7,19 +7,6 @@
background
:
$black-transparent
;
background
:
$black-transparent
;
}
}
.modal.popup-dialog
{
display
:
block
;
background-color
:
$black-transparent
;
z-index
:
2100
;
@media
(
min-width
:
$screen-md-min
)
{
.modal-dialog
{
width
:
600px
;
margin
:
30px
auto
;
}
}
}
.project-refs-form
,
.project-refs-form
,
.project-refs-target-form
{
.project-refs-target-form
{
display
:
inline-block
;
display
:
inline-block
;
...
...
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