From d3421eb75792b0a77d521c5c5ce14035f6496a5e Mon Sep 17 00:00:00 2001 From: Joey Hagedorn Date: Wed, 3 Jan 2007 23:05:04 +0000 Subject: Added syntax coloring for Diffs! Woo. Requires Pygments be installed: http://pygments.pocoo.org git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2620 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Reports/reports/templates/config_items/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/Server/Reports/reports/templates/config_items') diff --git a/src/lib/Server/Reports/reports/templates/config_items/index.html b/src/lib/Server/Reports/reports/templates/config_items/index.html index 952172715..b6e4957a4 100644 --- a/src/lib/Server/Reports/reports/templates/config_items/index.html +++ b/src/lib/Server/Reports/reports/templates/config_items/index.html @@ -1,6 +1,9 @@ +{% load syntax_coloring %} + {% extends "base.html" %} {% block extra_header_info %} + {% endblock%} @@ -41,7 +44,7 @@ {% endif %}{% if not item.reason.current_exists %} Existance: This item does not currently exist on the host but is specified to exist in the configuration. {% endif %}{% if item.reason.current_diff %} -Unified Diff:
{{item.reason.current_diff}}
+Unified Diff:
{{item.reason.current_diff|syntaxhilight:"diff"}}
{% endif %}
-- cgit v1.2.3-1-g7c22