summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Reports/reports/templates/config_items
diff options
context:
space:
mode:
authorJoey Hagedorn <hagedorn@mcs.anl.gov>2007-01-03 23:05:04 +0000
committerJoey Hagedorn <hagedorn@mcs.anl.gov>2007-01-03 23:05:04 +0000
commitd3421eb75792b0a77d521c5c5ce14035f6496a5e (patch)
treef0213fcb144168790c542e67ce7ad8c3d58ffada /src/lib/Server/Reports/reports/templates/config_items
parent80d3a9d0e9a172cfd40fb4e043901941d3862b88 (diff)
downloadbcfg2-d3421eb75792b0a77d521c5c5ce14035f6496a5e.tar.gz
bcfg2-d3421eb75792b0a77d521c5c5ce14035f6496a5e.tar.bz2
bcfg2-d3421eb75792b0a77d521c5c5ce14035f6496a5e.zip
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
Diffstat (limited to 'src/lib/Server/Reports/reports/templates/config_items')
-rw-r--r--src/lib/Server/Reports/reports/templates/config_items/index.html5
1 files changed, 4 insertions, 1 deletions
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 %}
+<link rel="stylesheet" type="text/css" href="/site_media/syntax-coloring.css" />
<script type="text/javascript" src="/site_media/CalendarPopup.js"></script>
<script language="JavaScript">var cal = new CalendarPopup();</script>
{% endblock%}
@@ -41,7 +44,7 @@
{% endif %}{% if not item.reason.current_exists %}
<tr><td align="right"><b>Existance: </b></td><td colspan=2>This item does not currently exist on the host but is specified to exist in the configuration.</td></tr>
{% endif %}{% if item.reason.current_diff %}
-<tr><td align="right"><b>Unified Diff: </b></td><td colspan=2><pre>{{item.reason.current_diff}}</pre></td></tr>
+<tr><td align="right"><b>Unified Diff: </b></td><td colspan=2><pre>{{item.reason.current_diff|syntaxhilight:"diff"}}</pre></td></tr>
{% endif %}
</table></center>
<hr/>