# HG changeset patch # User Mads Kiilerich # Date 1432761336 -7200 # Node ID 2c1ae0b188ae5f5fde6369f76803a1170592b90d # Parent 765fe407eda4367bca4332e39c18d407a5345c56 templates: whitespace/linebreak cleanup around "remote URL" Minimize the diff from http://lists.sfconservancy.org/pipermail/kallithea-general/2015q2/000710.html so it more easily can be reviewed. diff -r 765fe407eda4 -r 2c1ae0b188ae kallithea/templates/admin/repos/repo_add_base.html --- a/kallithea/templates/admin/repos/repo_add_base.html Sun May 17 21:54:55 2015 +0200 +++ b/kallithea/templates/admin/repos/repo_add_base.html Wed May 27 23:15:36 2015 +0200 @@ -11,7 +11,10 @@
${h.text('repo_name',class_="small")}
- ${_('Import existing repository ?')} + + + ${_('Import existing repository ?')} +
%if not c.authuser.is_admin: ${h.hidden('user_created',True)} @@ -24,7 +27,9 @@
${h.text('clone_uri',class_="small")} - ${_('Optional URL from which repository should be cloned.')} + + ${_('Optional URL from which repository should be cloned.')} +
diff -r 765fe407eda4 -r 2c1ae0b188ae kallithea/templates/admin/repos/repo_edit_remote.html --- a/kallithea/templates/admin/repos/repo_edit_remote.html Sun May 17 21:54:55 2015 +0200 +++ b/kallithea/templates/admin/repos/repo_edit_remote.html Wed May 27 23:15:36 2015 +0200 @@ -4,9 +4,12 @@
${h.form(url('edit_repo_remote', repo_name=c.repo_name), method='put')}
-
- ${h.submit('remote_pull_%s' % c.repo_info.repo_name,_('Pull Changes from Remote Location'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to pull changes from remote side.')+"');")} -
+
+ ${h.submit('remote_pull_%s' % c.repo_info.repo_name, + _('Pull Changes from Remote Location'), + class_="btn btn-small", + onclick="return confirm('"+_('Confirm to pull changes from remote side.')+"');")} +
${h.end_form()} %else: diff -r 765fe407eda4 -r 2c1ae0b188ae kallithea/templates/admin/repos/repo_edit_settings.html --- a/kallithea/templates/admin/repos/repo_edit_settings.html Sun May 17 21:54:55 2015 +0200 +++ b/kallithea/templates/admin/repos/repo_edit_settings.html Wed May 27 23:15:36 2015 +0200 @@ -15,13 +15,13 @@ Using the above permanent URL guarantees that this repository always will be accessible on that URL. This is useful for CI systems, or any other cases that you need to hardcode the URL into a 3rd party service.''')} - -
-
- -
-
- %if c.repo_info.clone_uri: +
+
+
+ +
+
+ %if c.repo_info.clone_uri:
${c.repo_info.clone_uri_hidden} ${_('Edit')} @@ -29,13 +29,15 @@ - %else: + %else: ## not set yet, display form to set it ${h.text('clone_uri',class_="medium")} ${h.hidden('clone_uri_change', 'NEW')} - %endif - ${_('URL used for doing remote pulls.')} -
+ %endif + + ${_('URL used for doing remote pulls.')} + +