--- a/Allura/allura/templates/repo/file.html
+++ b/Allura/allura/templates/repo/file.html
@@ -42,11 +42,15 @@
Try to <a href="?force=True">display it</a> anyway or
<a href="?format=raw">download it</a> instead.</p>
{% endif %}
- {% if blob.has_html_view and not blob.has_image_view or force_display %}
+ {% if (blob.has_html_view or blob.has_pypeline_view) and not blob.has_image_view or force_display %}
<p><a href="?format=raw">Download this file</a></p>
<div class="clip grid-19">
<h3><span class="ico-l"><b data-icon="{{g.icons['table'].char}}" class="ico {{g.icons['table'].css}}"></b> {{h.really_unicode(blob.name)}}</span></h3>
- {{g.highlight(blob.text, filename=blob.name)}}
+ {% if blob.has_pypeline_view %}
+ {{h.render_any_markup(blob.name, blob.text)}}
+ {% else %}
+ {{g.highlight(blob.text, filename=blob.name)}}
+ {% endif %}
</div>
{% endif %}
{% endblock %}