{% extends "ndf/base.html" %} {% load i18n %} {% block title %} {{ node.member_of_names_list|join:", " }} - {{ node.name }} {% endblock %} {% block style %} .tagInsert { background:#b3ffb3; } .tagDelete { background-color:#ffb3b3; } .insert { background:#b3ffb3; } .delete { background-color:#ffb3b3; } {% endblock %} {% block body_content %}

{% ifequal view "single" %} {% trans "View" %} {% else %} {% trans "Compare" %} {% endifequal %} {% trans "History" %} : {{content.3.name|title}}


{% csrf_token %}
{% trans "Compare" %} {% trans "with" %} {% if user.is_authenticated %} {% if user.is_superuser or node.created_by == user.id %} {% if selected_versions.1 and selected_versions.2 %} {% comment %} Merge {% endcomment %} Revert to {{selected_versions.1}} Revert to {{selected_versions.2}} {% endif %} {% endif %} {% endif %}
{% if view == "merge" or view == "revert" %} {% else %} {% comment %} {% endcomment %}
{% comment %} {% endcomment %} {% endif %} {% endblock %} {% block script %} toggleMainSidebar() drawtable() function drawtable() { left_panel = {{content|safe}} if ( '{{content1}}' != 'none' ) { right_panel = {{content1|safe}} right_panel.reverse() } $('#compare-view').append("") if ( '{{content1}}' != 'none' ) { $('#new').append("") } else { $('#new').append("") } h= 0 $.each(left_panel,function(k,g) { h = h + 1 $.each(g,function(c,v){ $('#new').append(" ") }); if ( '{{content1}}' != 'none' ) { t = right_panel.pop(k) $.each(t,function(c,v){ $('#rows' + k).append(" ") }); } }); } $("#compare_versions").click(function() { if ($("#version_1").val() === $("#version_2").val()) { alert ("Please select different versions!!!") return false; } }); {% endblock%}
Field Value Compared
Field Value
" + c.toUpperCase().bold().replace('_',' ') + " " + v + " " + v + "