diff rhodecode/templates/summary/summary.html @ 1342:9dacacc5b7c2 beta

When creating a remote repository, with credentials filled, it's good to hide username and password from the clone url. Only administrators can see this in repository settings page
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 22 May 2011 21:09:02 +0200
parents ea287ae3b901
children 4fd86e3deccf
line wrap: on
line diff
--- a/rhodecode/templates/summary/summary.html	Sun May 15 19:13:08 2011 +0200
+++ b/rhodecode/templates/summary/summary.html	Sun May 22 21:09:02 2011 +0200
@@ -75,11 +75,11 @@
 		          ##REMOTE
 				  %if c.dbrepo.clone_uri:
                     <div style="margin-top:5px;clear:both">
-                    <a href="${h.url(str(c.dbrepo.clone_uri))}">
+                    <a href="${h.url(str(h.hide_credentials(c.dbrepo.clone_uri)))}">
                     <img class="icon" alt="${_('remote clone')}"
-                    title="${_('Clone from')} ${c.dbrepo.clone_uri}" 
+                    title="${_('Clone from')} ${h.hide_credentials(c.dbrepo.clone_uri)}" 
                     src="${h.url("/images/icons/connect.png")}"/>
-                    ${_('Clone from')} ${c.dbrepo.clone_uri}
+                    ${_('Clone from')} ${h.hide_credentials(c.dbrepo.clone_uri)}
                     </a>
                     </div>					
 				  %endif