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
2860167b
Commit
2860167b
authored
Nov 16, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
0bea08a3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
36 deletions
+22
-36
app/assets/javascripts/right_sidebar.js
app/assets/javascripts/right_sidebar.js
+20
-32
app/views/groups/settings/ci_cd/show.html.haml
app/views/groups/settings/ci_cd/show.html.haml
+2
-1
locale/gitlab.pot
locale/gitlab.pot
+0
-3
No files found.
app/assets/javascripts/right_sidebar.js
View file @
2860167b
/* eslint-disable func-names,
no-var, consistent-return, one-var
, no-else-return, no-param-reassign */
/* eslint-disable func-names,
consistent-return
, no-else-return, no-param-reassign */
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
_
from
'
underscore
'
;
import
_
from
'
underscore
'
;
...
@@ -44,12 +44,11 @@ Sidebar.prototype.addEventListeners = function() {
...
@@ -44,12 +44,11 @@ Sidebar.prototype.addEventListeners = function() {
};
};
Sidebar
.
prototype
.
sidebarToggleClicked
=
function
(
e
,
triggered
)
{
Sidebar
.
prototype
.
sidebarToggleClicked
=
function
(
e
,
triggered
)
{
var
$allGutterToggleIcons
,
$this
,
isExpanded
,
tooltipLabel
;
const
$this
=
$
(
this
);
const
isExpanded
=
$this
.
find
(
'
i
'
).
hasClass
(
'
fa-angle-double-right
'
);
const
tooltipLabel
=
isExpanded
?
__
(
'
Expand sidebar
'
)
:
__
(
'
Collapse sidebar
'
);
const
$allGutterToggleIcons
=
$
(
'
.js-sidebar-toggle i
'
);
e
.
preventDefault
();
e
.
preventDefault
();
$this
=
$
(
this
);
isExpanded
=
$this
.
find
(
'
i
'
).
hasClass
(
'
fa-angle-double-right
'
);
tooltipLabel
=
isExpanded
?
__
(
'
Expand sidebar
'
)
:
__
(
'
Collapse sidebar
'
);
$allGutterToggleIcons
=
$
(
'
.js-sidebar-toggle i
'
);
if
(
isExpanded
)
{
if
(
isExpanded
)
{
$allGutterToggleIcons
.
removeClass
(
'
fa-angle-double-right
'
).
addClass
(
'
fa-angle-double-left
'
);
$allGutterToggleIcons
.
removeClass
(
'
fa-angle-double-right
'
).
addClass
(
'
fa-angle-double-left
'
);
...
@@ -77,15 +76,9 @@ Sidebar.prototype.sidebarToggleClicked = function(e, triggered) {
...
@@ -77,15 +76,9 @@ Sidebar.prototype.sidebarToggleClicked = function(e, triggered) {
};
};
Sidebar
.
prototype
.
toggleTodo
=
function
(
e
)
{
Sidebar
.
prototype
.
toggleTodo
=
function
(
e
)
{
var
$this
,
ajaxType
,
url
;
const
$this
=
$
(
e
.
currentTarget
);
$this
=
$
(
e
.
currentTarget
);
const
ajaxType
=
$this
.
data
(
'
deletePath
'
)
?
'
delete
'
:
'
post
'
;
ajaxType
=
$this
.
data
(
'
deletePath
'
)
?
'
delete
'
:
'
post
'
;
const
url
=
String
(
$this
.
data
(
'
deletePath
'
)
||
$this
.
data
(
'
createPath
'
));
if
(
$this
.
data
(
'
deletePath
'
))
{
url
=
String
(
$this
.
data
(
'
deletePath
'
));
}
else
{
url
=
String
(
$this
.
data
(
'
createPath
'
));
}
$this
.
tooltip
(
'
hide
'
);
$this
.
tooltip
(
'
hide
'
);
...
@@ -141,13 +134,12 @@ Sidebar.prototype.todoUpdateDone = function(data) {
...
@@ -141,13 +134,12 @@ Sidebar.prototype.todoUpdateDone = function(data) {
};
};
Sidebar
.
prototype
.
sidebarDropdownLoading
=
function
()
{
Sidebar
.
prototype
.
sidebarDropdownLoading
=
function
()
{
var
$loading
,
$sidebarCollapsedIcon
,
i
,
img
;
const
$sidebarCollapsedIcon
=
$
(
this
)
$sidebarCollapsedIcon
=
$
(
this
)
.
closest
(
'
.block
'
)
.
closest
(
'
.block
'
)
.
find
(
'
.sidebar-collapsed-icon
'
);
.
find
(
'
.sidebar-collapsed-icon
'
);
img
=
$sidebarCollapsedIcon
.
find
(
'
img
'
);
const
img
=
$sidebarCollapsedIcon
.
find
(
'
img
'
);
i
=
$sidebarCollapsedIcon
.
find
(
'
i
'
);
const
i
=
$sidebarCollapsedIcon
.
find
(
'
i
'
);
$loading
=
$
(
'
<i class="fa fa-spinner fa-spin"></i>
'
);
const
$loading
=
$
(
'
<i class="fa fa-spinner fa-spin"></i>
'
);
if
(
img
.
length
)
{
if
(
img
.
length
)
{
img
.
before
(
$loading
);
img
.
before
(
$loading
);
return
img
.
hide
();
return
img
.
hide
();
...
@@ -158,13 +150,12 @@ Sidebar.prototype.sidebarDropdownLoading = function() {
...
@@ -158,13 +150,12 @@ Sidebar.prototype.sidebarDropdownLoading = function() {
};
};
Sidebar
.
prototype
.
sidebarDropdownLoaded
=
function
()
{
Sidebar
.
prototype
.
sidebarDropdownLoaded
=
function
()
{
var
$sidebarCollapsedIcon
,
i
,
img
;
const
$sidebarCollapsedIcon
=
$
(
this
)
$sidebarCollapsedIcon
=
$
(
this
)
.
closest
(
'
.block
'
)
.
closest
(
'
.block
'
)
.
find
(
'
.sidebar-collapsed-icon
'
);
.
find
(
'
.sidebar-collapsed-icon
'
);
img
=
$sidebarCollapsedIcon
.
find
(
'
img
'
);
const
img
=
$sidebarCollapsedIcon
.
find
(
'
img
'
);
$sidebarCollapsedIcon
.
find
(
'
i.fa-spin
'
).
remove
();
$sidebarCollapsedIcon
.
find
(
'
i.fa-spin
'
).
remove
();
i
=
$sidebarCollapsedIcon
.
find
(
'
i
'
);
const
i
=
$sidebarCollapsedIcon
.
find
(
'
i
'
);
if
(
img
.
length
)
{
if
(
img
.
length
)
{
return
img
.
show
();
return
img
.
show
();
}
else
{
}
else
{
...
@@ -173,19 +164,17 @@ Sidebar.prototype.sidebarDropdownLoaded = function() {
...
@@ -173,19 +164,17 @@ Sidebar.prototype.sidebarDropdownLoaded = function() {
};
};
Sidebar
.
prototype
.
sidebarCollapseClicked
=
function
(
e
)
{
Sidebar
.
prototype
.
sidebarCollapseClicked
=
function
(
e
)
{
var
$block
,
sidebar
;
if
(
$
(
e
.
currentTarget
).
hasClass
(
'
dont-change-state
'
))
{
if
(
$
(
e
.
currentTarget
).
hasClass
(
'
dont-change-state
'
))
{
return
;
return
;
}
}
sidebar
=
e
.
data
;
const
sidebar
=
e
.
data
;
e
.
preventDefault
();
e
.
preventDefault
();
$block
=
$
(
this
).
closest
(
'
.block
'
);
const
$block
=
$
(
this
).
closest
(
'
.block
'
);
return
sidebar
.
openDropdown
(
$block
);
return
sidebar
.
openDropdown
(
$block
);
};
};
Sidebar
.
prototype
.
openDropdown
=
function
(
blockOrName
)
{
Sidebar
.
prototype
.
openDropdown
=
function
(
blockOrName
)
{
var
$block
;
const
$block
=
_
.
isString
(
blockOrName
)
?
this
.
getBlock
(
blockOrName
)
:
blockOrName
;
$block
=
_
.
isString
(
blockOrName
)
?
this
.
getBlock
(
blockOrName
)
:
blockOrName
;
if
(
!
this
.
isOpen
())
{
if
(
!
this
.
isOpen
())
{
this
.
setCollapseAfterUpdate
(
$block
);
this
.
setCollapseAfterUpdate
(
$block
);
this
.
toggleSidebar
(
'
open
'
);
this
.
toggleSidebar
(
'
open
'
);
...
@@ -204,10 +193,9 @@ Sidebar.prototype.setCollapseAfterUpdate = function($block) {
...
@@ -204,10 +193,9 @@ Sidebar.prototype.setCollapseAfterUpdate = function($block) {
};
};
Sidebar
.
prototype
.
onSidebarDropdownHidden
=
function
(
e
)
{
Sidebar
.
prototype
.
onSidebarDropdownHidden
=
function
(
e
)
{
var
$block
,
sidebar
;
const
sidebar
=
e
.
data
;
sidebar
=
e
.
data
;
e
.
preventDefault
();
e
.
preventDefault
();
$block
=
$
(
e
.
target
).
closest
(
'
.block
'
);
const
$block
=
$
(
e
.
target
).
closest
(
'
.block
'
);
return
sidebar
.
sidebarDropdownHidden
(
$block
);
return
sidebar
.
sidebarDropdownHidden
(
$block
);
};
};
...
...
app/views/groups/settings/ci_cd/show.html.haml
View file @
2860167b
...
@@ -31,7 +31,8 @@
...
@@ -31,7 +31,8 @@
%button
.btn.btn-default.js-settings-toggle
{
type:
"button"
}
%button
.btn.btn-default.js-settings-toggle
{
type:
"button"
}
=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
=
expanded
?
_
(
'Collapse'
)
:
_
(
'Expand'
)
%p
%p
=
_
(
'Register and see your runners for this group.'
)
=
_
(
"Runners are processes that pick up and execute jobs for GitLab. Here you can register and see your Runners for this project."
)
=
link_to
s_
(
'More information'
),
help_page_path
(
'ci/runners/README'
)
.settings-content
.settings-content
=
render
'groups/runners/index'
=
render
'groups/runners/index'
...
...
locale/gitlab.pot
View file @
2860167b
...
@@ -14079,9 +14079,6 @@ msgstr ""
...
@@ -14079,9 +14079,6 @@ msgstr ""
msgid "Register Universal Two-Factor (U2F) Device"
msgid "Register Universal Two-Factor (U2F) Device"
msgstr ""
msgstr ""
msgid "Register and see your runners for this group."
msgstr ""
msgid "Register for GitLab"
msgid "Register for GitLab"
msgstr ""
msgstr ""
...
...
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