From 431f589903ea3f03678a3c20acfd478ae4c15805 Mon Sep 17 00:00:00 2001 From: Arun yadav Date: Fri, 18 May 2012 16:37:44 +0530 Subject: templates and views for history, with colour diff v1 --- gstudio/templates/gstudio/version_diff.html | 103 ++++++++++++++++++---------- 1 file changed, 67 insertions(+), 36 deletions(-) (limited to 'gstudio/templates/gstudio/version_diff.html') diff --git a/gstudio/templates/gstudio/version_diff.html b/gstudio/templates/gstudio/version_diff.html index 8130574..ee5e305 100644 --- a/gstudio/templates/gstudio/version_diff.html +++ b/gstudio/templates/gstudio/version_diff.html @@ -111,24 +111,32 @@ {{ ver_new.title }} -
- {% with nt1.html_content|safe as object_content %} - Name:{{ ver_new.title }}
- {% if ver_new.altnames %} - Alternate names: {{ diffs }} -
- {% endif %} - {% if ver_new.plural %} - Plural Name:{{ ver_new.plural }}
- {% endif %} - {% if nt1.get_rendered_nbh.authors %}Authors: - {% endif %} - {% for author in nt1.authors.all %} - - - {% if not forloop.last %}, {% endif %} - {% endfor %}
+ {% block content56 %}{% for each in diffs1 %} + {% autoescape off %} + {{ each }}
+ {% endautoescape %}{% endfor %} {% endblock %} + + + + + + + + + + + + + + + + + + + + + + {% endwith %} {% endblock %} {% endblock %} @@ -142,30 +150,53 @@ {{ ver_old.title }} -
- {% with nt1.html_content|safe as object_content %} - Name:{{ ver_old.title }}
- {% if ver_old.altnames %} - Alternate names:{{ ver_old.altnames}} -
- {% endif %} - {% if ver_old.plural %} - Plural Name:{{ ver_old.plural }}
- {% endif %} - {% if nt1.get_rendered_nbh.authors %}Authors: - {% endif %} - {% for author in nt1.authors.all %} - - - {% if not forloop.last %}, {% endif %} - {% endfor %}
+ {% block content85 %}{% for each in diffs %} + {% autoescape off %} + {{ each }}
+ {% endautoescape %}{% endfor %} {% endblock %} + + + + + + + + + + + + + + + + + + + + + + {% endwith %} {% endblock %} {% endblock %} + + + + + + + + + + +Difference between Selected Versions +{% block content5 %}{% for each in diffs %} + {% autoescape off %} + {{ each }}
+ {% endautoescape %}{% endfor %} {% endblock %}
-- cgit v1.1