diff --git a/pagure/templates/file.html b/pagure/templates/file.html index 3f5b2f6..b5b7600 100644 --- a/pagure/templates/file.html +++ b/pagure/templates/file.html @@ -27,19 +27,25 @@ {% if content %} - {% if output_type == 'file' or output_type == 'binary' or output_type == 'image' %} + {% if output_type in ('file','binary','image','markup') %}
{% if content %} - {% if output_type == 'file' or output_type == 'binary' or output_type == 'image' %} + {% if output_type in ('file','binary','image','markup') %}
- {% if output_type=='file' and repo_admin %} + {% if output_type in ('file','markup') and repo_admin %} Edit {% endif %} + {% if output_type == 'markup' %} + Text + {% else %} Blob + {% endif %} Raw @@ -51,6 +57,10 @@ {% autoescape false %} {{ content | format_loc}} {% endautoescape %} + {% elif output_type == 'markup' %} + {% autoescape false %} + {{ content | noJS }} + {% endautoescape %} {% elif output_type == 'image' %}