From df2ed9518f1f6a1a2132ad042100f7a48a401a93 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 28 2014 07:49:36 +0000 Subject: Only authenticated user can see the 'Pull-request' link on the log view --- diff --git a/progit/templates/repo_info.html b/progit/templates/repo_info.html index 42c1283..af1be7b 100644 --- a/progit/templates/repo_info.html +++ b/progit/templates/repo_info.html @@ -102,7 +102,7 @@ {% else %}

Last 10 commits

{% endif %} - {% if diff_commits %} + {% if diff_commits and authenticated %} Request pull @@ -118,10 +118,12 @@ {{ commit.message.split('\n')[0] }} {% if diff_commits and commit.oid.hex in diff_commits %} * + {% if authenticated %} (Request pull) {% endif %} + {% endif %} {% endfor %}