From 4ec0e47a282fad28fb0a0dc0e48577903e64699d Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 23 2018 09:03:58 +0000 Subject: Fix viewing patch attached to ticket Convert the bytes into a valid string and use highlight.js to render it nicely as in the same way we are using highlight.js to render nicely files in the repo. Fixes https://pagure.io/pagure/issue/3822 --- diff --git a/pagure/templates/patchfile.html b/pagure/templates/patchfile.html index f5fae15..3a6d74c 100644 --- a/pagure/templates/patchfile.html +++ b/pagure/templates/patchfile.html @@ -3,6 +3,16 @@ {% block title %}Patch File - {{ repo.namespace + '/' if repo.namespace }}{{ repo.name }} {% endblock %} +{% block header %} + + +{% endblock %} + {% block repo %}