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
b59b203e
Commit
b59b203e
authored
Oct 10, 2019
by
Michael Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Custom HTTP Git clone URL root setting to UI
parent
f0377407
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
app/views/admin/application_settings/_visibility_and_access.html.haml
...min/application_settings/_visibility_and_access.html.haml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+6
-0
No files found.
app/views/admin/application_settings/_visibility_and_access.html.haml
View file @
b59b203e
...
...
@@ -53,6 +53,11 @@
=
select
(
:application_setting
,
:enabled_git_access_protocol
,
[[
'Both SSH and HTTP(S)'
,
nil
],
[
'Only SSH'
,
'ssh'
],
[
'Only HTTP(S)'
,
'http'
]],
{},
class:
'form-control'
)
%span
.form-text.text-muted
#clone-protocol-help
=
_
(
'Allow only the selected protocols to be used for Git access.'
)
.form-group
=
f
.
label
:custom_http_clone_url_root
,
_
(
'Custom Git clone URL for HTTP(S)'
),
class:
'label-bold'
=
f
.
text_field
:custom_http_clone_url_root
,
class:
'form-control'
,
placeholder:
'https://git.example.com'
,
:'aria-describedby'
=>
'custom_http_clone_url_root_help_block'
%span
.form-text.text-muted
#custom_http_clone_url_root_help_block
=
_
(
'Replaces the clone URL root.'
)
-
ApplicationSetting
::
SUPPORTED_KEY_TYPES
.
each
do
|
type
|
-
field_name
=
:"
#{
type
}
_key_restriction"
...
...
locale/gitlab.pot
View file @
b59b203e
...
...
@@ -4828,6 +4828,9 @@ msgstr ""
msgid "Custom CI configuration path"
msgstr ""
msgid "Custom Git clone URL for HTTP(S)"
msgstr ""
msgid "Custom hostname (for private commit emails)"
msgstr ""
...
...
@@ -13735,6 +13738,9 @@ msgstr ""
msgid "Replaced all labels with %{label_references} %{label_text}."
msgstr ""
msgid "Replaces the clone URL root."
msgstr ""
msgid "Reply by email"
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