From 3b830581d58a307232523eb8629b64f86f65946a Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Fri, 30 Jan 2009 14:11:37 +0100 Subject: [PATCH] Fixed to show the SSH access URL to perform the clone for a private project. --- src/IDF/templates/idf/source/git/help.html | 2 +- src/IDF/templates/idf/source/git/tree.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IDF/templates/idf/source/git/help.html b/src/IDF/templates/idf/source/git/help.html index 582d095..eb71a70 100644 --- a/src/IDF/templates/idf/source/git/help.html +++ b/src/IDF/templates/idf/source/git/help.html @@ -8,7 +8,7 @@ code.{/blocktrans}

{trans 'Command-Line Access'}

-

git clone {$project.getRemoteAccessUrl()}

+

git clone {if $project.private}{$project.getWriteRemoteAccessUrl()}{else}{$project.getRemoteAccessUrl()}{/if}

{aurl 'url', 'IDF_Views_User::myAccount'}

{blocktrans}You may need to provide your SSH key. The synchronization of your SSH key can take a couple of minutes. You can learn more about SSH key authentification.{/blocktrans}

diff --git a/src/IDF/templates/idf/source/git/tree.html b/src/IDF/templates/idf/source/git/tree.html index a8b664d..8de19e9 100644 --- a/src/IDF/templates/idf/source/git/tree.html +++ b/src/IDF/templates/idf/source/git/tree.html @@ -43,7 +43,7 @@ {aurl 'url', 'IDF_Views_Source::download', array($project.shortname, $commit)} -

{trans 'Archive'} {trans 'Download this version'} {trans 'or'} git clone {$project.getRemoteAccessUrl()} {trans 'Help'}

+

{trans 'Archive'} {trans 'Download this version'} {trans 'or'} git clone {if $project.private}{$project.getWriteRemoteAccessUrl()}{else}{$project.getRemoteAccessUrl()}{/if} {trans 'Help'}

{/block}