diff --git a/kallithea/model/validators.py b/kallithea/model/validators.py
--- a/kallithea/model/validators.py
+++ b/kallithea/model/validators.py
@@ -471,9 +471,9 @@ def ValidCloneUri():
class _validator(formencode.validators.FancyValidator):
messages = {
- 'clone_uri': _(u'invalid clone URL'),
- 'invalid_clone_uri': _(u'Invalid clone URL, provide a '
- 'valid clone http(s)/svn+http(s)/ssh URL')
+ 'clone_uri': _(u'Invalid repository URL'),
+ 'invalid_clone_uri': _(u'Invalid repository URL. It must be a '
+ 'valid http, https, ssh, svn+http or svn+https URL'),
}
def validate_python(self, value, state):
diff --git a/kallithea/templates/admin/repos/repo_add_base.html b/kallithea/templates/admin/repos/repo_add_base.html
--- a/kallithea/templates/admin/repos/repo_add_base.html
+++ b/kallithea/templates/admin/repos/repo_add_base.html
@@ -10,18 +10,9 @@ ${h.form(url('repos'))}
-
+
@@ -102,16 +93,6 @@ ${h.form(url('repos'))}
}
}
- $('#remote_clone_toggle').on('click', function(e){
- $('#remote_clone').show();
- e.preventDefault();
- });
- if($('#remote_clone input').hasClass('error')){
- $('#remote_clone').show();
- }
- if($('#remote_clone input').val()){
- $('#remote_clone').show();
- }
$("#repo_group").select2({
'dropdownAutoWidth': true
});
diff --git a/kallithea/templates/admin/repos/repo_edit_settings.html b/kallithea/templates/admin/repos/repo_edit_settings.html
--- a/kallithea/templates/admin/repos/repo_edit_settings.html
+++ b/kallithea/templates/admin/repos/repo_edit_settings.html
@@ -27,7 +27,7 @@ ${h.form(url('repo', repo_name=c.repo_in
${_('Edit')}
- ${h.text('clone_uri',class_="medium", placeholder=_('new value'))}
+ ${h.text('clone_uri',class_="medium", placeholder=_('New URL'))}
%else:
## not set yet, display form to set it
@@ -151,7 +151,7 @@ ${h.form(url('repo', repo_name=c.repo_in
$('#edit_clone_uri').hide();
$('#clone_uri_hidden').hide();
## store hash of old value for change detection
- var uri_change = '
';
+ var uri_change = '
';
$('#alter_clone_uri_help_block').html($('#alter_clone_uri_help_block').html()+" ("+$('#clone_uri_hidden_value').html()+")");
});
diff --git a/kallithea/tests/functional/test_admin_repos.py b/kallithea/tests/functional/test_admin_repos.py
--- a/kallithea/tests/functional/test_admin_repos.py
+++ b/kallithea/tests/functional/test_admin_repos.py
@@ -348,7 +348,7 @@ class _BaseTest(object):
repo_description=description,
clone_uri='http://127.0.0.1/repo',
_authentication_token=self.authentication_token()))
- response.mustcontain('invalid clone URL')
+ response.mustcontain('Invalid repository URL')
def test_create_remote_repo_wrong_clone_uri_hg_svn(self):
@@ -362,7 +362,7 @@ class _BaseTest(object):
repo_description=description,
clone_uri='svn+http://127.0.0.1/repo',
_authentication_token=self.authentication_token()))
- response.mustcontain('invalid clone URL')
+ response.mustcontain('Invalid repository URL')
def test_delete(self):