diff options
author | Daniel Gustafsson | 2017-09-18 19:27:51 +0000 |
---|---|---|
committer | Magnus Hagander | 2017-09-18 19:27:51 +0000 |
commit | 123a0a4869c5e793964ad4154efddcf39cbc8b38 (patch) | |
tree | 4d49935f5f78e00f6fd01eb500182c4465be5dfd | |
parent | 59ee0ca9c6a45300bfb1f678ed5a1a74e2045c08 (diff) |
Hide annotation button if user is not logged in
Reported by Peter Geoghegan
-rw-r--r-- | pgcommitfest/commitfest/templates/patch.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pgcommitfest/commitfest/templates/patch.html b/pgcommitfest/commitfest/templates/patch.html index 8fbf458..3ed775e 100644 --- a/pgcommitfest/commitfest/templates/patch.html +++ b/pgcommitfest/commitfest/templates/patch.html @@ -100,7 +100,7 @@ </table> {%endif%} {%endfor%} - <button class="btn btn-xs btn-default" onclick="addAnnotation({{t.id}})">Add annotation</button> + {%if user.is_authenticated%}<button class="btn btn-xs btn-default" onclick="addAnnotation({{t.id}})">Add annotation</button>{%endif%} </div> </dd> {%endfor%} |