From 43756ff9f27eb37a85a69212bf16fb0eb8238c8e Mon Sep 17 00:00:00 2001 From: Farhaan Bukhsh Date: Jul 28 2016 15:31:16 +0000 Subject: Add functionality to Fork and edit a file The function added forks the project and then redirect the url to edit the file specified. A form is added to the file UI which has a button saying Fork and Edit. --- diff --git a/pagure/templates/file.html b/pagure/templates/file.html index 9478de5..5f2edca 100644 --- a/pagure/templates/file.html +++ b/pagure/templates/file.html @@ -98,6 +98,15 @@ filename=filename | unicode) }}" title="Edit file">Edit {% endif %} {% if output_type == 'markup' %} +
+ + {{ forkbuttonform.csrf_token }} +