From 3b830581d58a307232523eb8629b64f86f65946a Mon Sep 17 00:00:00 2001
From: Loic d'Anterroches
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 'Download this version'} {trans 'or'} git clone {$project.getRemoteAccessUrl()}
+{trans 'Download this version'} {trans 'or'} git clone {if $project.private}{$project.getWriteRemoteAccessUrl()}{else}{$project.getRemoteAccessUrl()}{/if}
{/block}