diff --git a/pagure/templates/file.html b/pagure/templates/file.html index 5f2edca..acd1a82 100644 --- a/pagure/templates/file.html +++ b/pagure/templates/file.html @@ -97,16 +97,18 @@ repo=repo.name, branchname=branchname, filename=filename | unicode) }}" title="Edit file">Edit {% endif %} - {% if output_type == 'markup' %} -
- - {{ forkbuttonform.csrf_token }} + {% if output_type in ('file','markup') %} + + + {{ forkbuttonform.csrf_token }}
+ {% endif %} + {% if output_type == 'markup' %}