{% extends 'base/layout.html' %} {% load helpers %} {% block title %}Oxidized Config Diff{% endblock %} {% block header %}

Oxidized Config Diff

{% endblock header %} {% block content %}
Compare Device Configurations
{% if error %} {% endif %} {% if device_a and device_b %}
{{ device_a }} vs {{ device_b }}
{% if external_url %} {{ device_a }} {{ device_b }} {% endif %}
{% if diff_html %} {# Unified diff view #}
{% for line in diff_html.splitlines %}{% if line|slice:":3" == "---" %}{{ line }}
{% elif line|slice:":3" == "+++" %}{{ line }}
{% elif line|slice:":2" == "@@" %}{{ line }}
{% elif line|slice:":1" == "-" %}{{ line }}
{% elif line|slice:":1" == "+" %}{{ line }}
{% else %}{{ line }}
{% endif %}{% endfor %}
{# Side-by-side view (hidden by default) #} {% elif config_a and config_b %}

Configurations are identical

{% else %}

Could not load configurations for comparison

{% endif %}
{% endif %} {% endblock %}