# HG changeset patch # User Marcin Kuzminski # Date 2018-02-13 09:16:05 # Node ID 146d08cc61e54a441bd2eea081b8e1cd21862293 # Parent 6477cf12d3b5c804326a11767fdc1c0999b67c99 repo-remote: updated remote template to indicate pull/push remote sync differences. diff --git a/rhodecode/templates/admin/repos/repo_edit_remote.mako b/rhodecode/templates/admin/repos/repo_edit_remote.mako --- a/rhodecode/templates/admin/repos/repo_edit_remote.mako +++ b/rhodecode/templates/admin/repos/repo_edit_remote.mako @@ -6,14 +6,19 @@

${_('Manually pull/push changes from/to external URLs.')}

- %if c.rhodecode_db_repo.clone_uri or c.rhodecode_db_repo.push_uri: - - - % if c.rhodecode_db_repo.clone_uri: +
- + + % if c.rhodecode_db_repo.clone_uri: - % endif + % endif - % if c.rhodecode_db_repo.push_uri: - + @@ -51,19 +62,7 @@ ${_('This feature is available in RhodeCode EE edition only. Contact {sales_email} to obtain a trial license.').format(sales_email='sales@rhodecode.com')|n} - % endif
${_('Pull url')}
${c.rhodecode_db_repo.clone_uri_hidden} + % if c.rhodecode_db_repo.clone_uri: + ${c.rhodecode_db_repo.clone_uri_hidden} + % else: + ${_('This repository does not have any pull url set.')} + ${_('Set remote url.')} + % endif +
@@ -38,12 +43,18 @@ ${h.end_form()}
${_('Push url')}
${c.rhodecode_db_repo.push_uri_hidden} + % if c.rhodecode_db_repo.push_uri: + ${c.rhodecode_db_repo.push_uri_hidden} + % else: + ${_('This repository does not have any push url set.')} + ${_('Set remote url.')} + % endif +
- - %else: - - ${_('This repository does not have any remote mirror url set.')} - ${_('Set remote url.')} -
-
- - %endif