From 43275e952a8eb7e06b8884d2a29f030066459efc Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 17 2016 16:19:50 +0000 Subject: Clean up the html of the blame page --- diff --git a/pagure/templates/blame.html b/pagure/templates/blame.html index 311366a..030d072 100644 --- a/pagure/templates/blame.html +++ b/pagure/templates/blame.html @@ -100,67 +100,60 @@ {% if content %} - {% if output_type in ('file','binary','image','markup', 'blame') %}
- {% if content %} - {% if output_type in ('file','binary','image','markup', 'blame') %} -
- {% if output_type in ('file','markup') and g.repo_admin %} - Edit - {% endif %} - {% if output_type in ('file','markup') %} -
- - {{ forkbuttonform.csrf_token }} -
- {% endif %} - {% if output_type == 'markup' %} - Text - {% else %} - Blob - {% endif %} - - Raw -
- {% endif %} - {% endif %} +
+ {% if output_type in ('file','markup') and g.repo_admin %} + Edit + {% endif %} + {% if output_type in ('file','markup') %} +
+ + {{ forkbuttonform.csrf_token }} +
+ {% endif %} + {% if output_type == 'markup' %} + Text + {% else %} + Blob + {% endif %} + Raw +
{% autoescape false %} {{ content | blame_loc(repo, username, blame) }} {% endautoescape %}
- {% endif %} {% else %} No content found in this repository {% endif %}