From b09b176170fdadca87006e0a63fdf8f16eff5a97 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 31 2017 10:44:42 +0000 Subject: Fix not showing the Fork and Edit button on binary files Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/file.html b/pagure/templates/file.html index b5541c8..8777091 100644 --- a/pagure/templates/file.html +++ b/pagure/templates/file.html @@ -109,10 +109,18 @@ branchname=branchname, filename=filename | unicode) }}" title="Edit file">Edit {% endif %} - {% if output_type in ('file','markup') and not authenticated - or ( - not repo.is_fork - or (authenticated and repo.user.user != g.fas_user.username)) %} + {% if output_type in ('file','markup') + and ( + not authenticated + or ( + not repo.is_fork + or ( + authenticated + and repo.user.user != g.fas_user.username + ) + ) + ) + %}