From 31142b1325d6948fd8ed9f19cb0ce82d26afbd5f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 23 2017 14:59:13 +0000 Subject: Do not show the SSH url when the user is not logged in Signed-off-by: Pierre-Yves Chibon --- diff --git a/template/repo_info.html b/template/repo_info.html index 77bd309..e215e6d 100644 --- a/template/repo_info.html +++ b/template/repo_info.html @@ -221,6 +221,7 @@ git push -u origin master aria-expanded="false" aria-controls="moregiturls" id="more_gits">more{%endif%}
+ {% if authenticated and g.repo_committer %}
SSH
@@ -228,6 +229,7 @@ git push -u origin master git_url_ssh }}{{ repo.fullname }}.git" readonly>
+ {% endif %}
GIT