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
02773f1e
Commit
02773f1e
authored
Aug 01, 2018
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename all push_pull to mirror_repos
parent
b5fea573
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
10 deletions
+10
-10
app/assets/javascripts/pages/projects/settings/repository/show/index.js
...ascripts/pages/projects/settings/repository/show/index.js
+3
-3
app/assets/javascripts/pages/projects/settings/repository/show/mirror_repos.js
...s/pages/projects/settings/repository/show/mirror_repos.js
+1
-1
app/views/projects/mirrors/_mirror_repos.html.haml
app/views/projects/mirrors/_mirror_repos.html.haml
+1
-1
app/views/projects/mirrors/_mirror_repos_form.html.haml
app/views/projects/mirrors/_mirror_repos_form.html.haml
+0
-0
app/views/projects/mirrors/_show.html.haml
app/views/projects/mirrors/_show.html.haml
+1
-1
ee/app/assets/javascripts/pages/projects/settings/repository/show/ee_mirror_repos.js
...ages/projects/settings/repository/show/ee_mirror_repos.js
+2
-2
ee/app/assets/javascripts/pages/projects/settings/repository/show/index.js
...ascripts/pages/projects/settings/repository/show/index.js
+2
-2
ee/app/views/projects/mirrors/_mirror_repos_form.html.haml
ee/app/views/projects/mirrors/_mirror_repos_form.html.haml
+0
-0
No files found.
app/assets/javascripts/pages/projects/settings/repository/show/index.js
View file @
02773f1e
import
initForm
from
'
../form
'
;
import
PushPull
from
'
./push_pull
'
;
import
MirrorRepos
from
'
./mirror_repos
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initForm
();
const
pushPull
Container
=
document
.
querySelector
(
'
.js-mirror-settings
'
);
if
(
pushPullContainer
)
new
PushPull
(
pushPull
Container
).
init
();
const
mirrorRepos
Container
=
document
.
querySelector
(
'
.js-mirror-settings
'
);
if
(
mirrorReposContainer
)
new
MirrorRepos
(
mirrorRepos
Container
).
init
();
});
app/assets/javascripts/pages/projects/settings/repository/show/
push_pull
.js
→
app/assets/javascripts/pages/projects/settings/repository/show/
mirror_repos
.js
View file @
02773f1e
...
...
@@ -4,7 +4,7 @@ import { __ } from '~/locale';
import
Flash
from
'
~/flash
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
export
default
class
PushPull
{
export
default
class
MirrorRepos
{
constructor
(
container
)
{
this
.
$container
=
$
(
container
);
this
.
$form
=
$
(
'
.js-mirror-form
'
,
this
.
$container
);
...
...
app/views/projects/mirrors/_
push_pull
.html.haml
→
app/views/projects/mirrors/_
mirror_repos
.html.haml
View file @
02773f1e
...
...
@@ -31,7 +31,7 @@
=
render_if_exists
'projects/mirrors/direction_dropdown'
,
options:
options
=
render
'projects/mirrors/
push_pull
_form'
,
can_push:
can_push
,
can_pull:
can_pull
,
f:
f
=
render
'projects/mirrors/
mirror_repos
_form'
,
can_push:
can_push
,
can_pull:
can_pull
,
f:
f
.form-check.append-bottom-10
=
check_box_tag
:only_protected_branches
,
'1'
,
false
,
class:
'js-mirror-protected form-check-input'
...
...
app/views/projects/mirrors/_
push_pull
_form.html.haml
→
app/views/projects/mirrors/_
mirror_repos
_form.html.haml
View file @
02773f1e
File moved
app/views/projects/mirrors/_show.html.haml
View file @
02773f1e
=
render
'projects/mirrors/
push_pull
'
=
render
'projects/mirrors/
mirror_repos
'
ee/app/assets/javascripts/pages/projects/settings/repository/show/ee_
push_pull
.js
→
ee/app/assets/javascripts/pages/projects/settings/repository/show/ee_
mirror_repos
.js
View file @
02773f1e
import
$
from
'
jquery
'
;
import
{
__
}
from
'
~/locale
'
;
import
Flash
from
'
~/flash
'
;
import
PushPull
from
'
~/pages/projects/settings/repository/show/push_pull
'
;
import
MirrorRepos
from
'
~/pages/projects/settings/repository/show/mirror_repos
'
;
import
MirrorPull
from
'
ee/mirrors/mirror_pull
'
;
export
default
class
EE
PushPull
extends
PushPull
{
export
default
class
EE
MirrorRepos
extends
MirrorRepos
{
constructor
(...
args
)
{
super
(...
args
);
...
...
ee/app/assets/javascripts/pages/projects/settings/repository/show/index.js
View file @
02773f1e
...
...
@@ -13,7 +13,7 @@ import CEProtectedBranchEditList from '~/protected_branches/protected_branch_edi
import
CEProtectedTagCreate
from
'
~/protected_tags/protected_tag_create
'
;
import
CEProtectedTagEditList
from
'
~/protected_tags/protected_tag_edit_list
'
;
import
DueDateSelectors
from
'
~/due_date_select
'
;
import
EE
PushPull
from
'
./ee_push_pull
'
;
import
EE
MirrorRepos
from
'
./ee_mirror_repos
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
UsersSelect
();
...
...
@@ -37,7 +37,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
const
pushPullContainer
=
document
.
querySelector
(
'
.js-mirror-settings
'
);
if
(
pushPullContainer
)
new
EE
PushPull
(
pushPullContainer
).
init
();
if
(
pushPullContainer
)
new
EE
MirrorRepos
(
pushPullContainer
).
init
();
new
DueDateSelectors
();
});
ee/app/views/projects/mirrors/_
push_pull
_form.html.haml
→
ee/app/views/projects/mirrors/_
mirror_repos
_form.html.haml
View file @
02773f1e
File moved
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