# HG changeset patch # User Mads Kiilerich # Date 2015-06-09 22:53:24 # Node ID 221d6a002601a22eb49c46db73e3dfe621eb40f6 # Parent f47d6187095f16acb94caadfb8e4a7b7fac3fe49 repos: cleanup of stuff related to clone_uri 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'))}
${h.text('repo_name',class_="small")} -
- - - ${_('Import existing repository ?')} - -
- %if not c.authuser.is_admin: - ${h.hidden('user_created',True)} - %endif
-