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
cd746d71
Commit
cd746d71
authored
Jul 31, 2018
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add password to push form
parent
bca0997a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
app/views/projects/mirrors/_push_pull_form.html.haml
app/views/projects/mirrors/_push_pull_form.html.haml
+9
-1
ee/app/views/projects/mirrors/_push_pull_form.html.haml
ee/app/views/projects/mirrors/_push_pull_form.html.haml
+8
-0
No files found.
app/views/projects/mirrors/_push_pull_form.html.haml
View file @
cd746d71
...
...
@@ -3,4 +3,12 @@
=
f
.
fields_for
:remote_mirrors
,
@remote_mirror
do
|
rm_f
|
=
rm_f
.
hidden_field
:enabled
,
value:
'1'
=
rm_f
.
hidden_field
:url
,
class:
'js-mirror-url-hidden'
,
required:
true
,
pattern:
"(
#{
protocols
}
):
\/\/
.+"
=
rm_f
.
hidden_field
:only_protected_branches
,
class:
'js-mirror-protected-hidden'
\ No newline at end of file
=
rm_f
.
hidden_field
:only_protected_branches
,
class:
'js-mirror-protected-hidden'
.form-group
=
label_tag
:auth_method
,
_
(
'Authentication method'
),
class:
'label-bold'
=
select_tag
:auth_method
,
options_for_select
([[
_
(
'Password'
),
'password'
]],
'password'
),
{
class:
"form-control js-auth-method"
,
disabled:
'disabled'
}
.form-group
=
label_tag
:password
,
_
(
'Password'
),
class:
'label-bold'
=
text_field_tag
:password
,
''
,
class:
'form-control js-password'
\ No newline at end of file
ee/app/views/projects/mirrors/_push_pull_form.html.haml
View file @
cd746d71
...
...
@@ -11,6 +11,14 @@
=
rm_f
.
hidden_field
:url
,
class:
'js-mirror-url-hidden'
,
required:
true
,
pattern:
"(
#{
protocols
}
):
\/\/
.+"
=
rm_f
.
hidden_field
:only_protected_branches
,
class:
'js-mirror-protected-hidden'
.form-group
=
label_tag
:auth_method
,
_
(
'Authentication method'
),
class:
'label-bold'
=
select_tag
:auth_method
,
options_for_select
([[
_
(
'Password'
),
'password'
]],
'password'
),
{
class:
"form-control js-auth-method"
,
disabled:
'disabled'
}
.form-group
=
label_tag
:password
,
_
(
'Password'
),
class:
'label-bold'
=
text_field_tag
:password
,
''
,
class:
'form-control js-password'
-
if
can_pull
%template
.js-pull-mirrors-form
=
f
.
hidden_field
:mirror
,
value:
'1'
...
...
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