From 244509e3eb4058a3aff505e3836d43d64b08fe7d Mon Sep 17 00:00:00 2001 From: Arun yadav Date: Sat, 19 May 2012 15:15:51 +0530 Subject: Difference generation between versions done partly, list of differences generated. --- gstudio/templates/gstudio/version_diff.html | 120 +++++++++++++++------------- 1 file changed, 64 insertions(+), 56 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 ee5e305..a640f07 100644 --- a/gstudio/templates/gstudio/version_diff.html +++ b/gstudio/templates/gstudio/version_diff.html @@ -111,32 +111,32 @@ {{ ver_new.title }} - {% block content56 %}{% for each in diffs1 %} - {% autoescape off %} - {{ each }}
- {% endautoescape %}{% endfor %} {% endblock %} + + + + - - - - - - - - - - - - + {% with nt1.html_content|safe as object_content %}
+ Name:{{ ver_new.title }}
+ {% if ver_new.altnames %} + Alternate names:{{ ver_new.altnames }} +
+ {% endif %} + {% if ver_new.plural %} + Plural Name:{{ ver_new.plural }}
+ {% endif %} + + Content:{{ ver_new.content }}
+ - - - - - - - - + {% if nt1.get_rendered_nbh.authors %}Authors: + {% endif %} + {% for author in nt1.authors.all %} + + + {% if not forloop.last %}, {% endif %} + {% endfor %}
{% endwith %} {% endblock %} {% endblock %} @@ -149,33 +149,41 @@

{{ ver_old.title }} -

- {% block content85 %}{% for each in diffs %} - {% autoescape off %} - {{ each }}
- {% endautoescape %}{% endfor %} {% endblock %} - - - - - - - - - - - - - + + + + + +
+ {% with nt1.html_content|safe as object_content %} + Name:{% autoescape off %} + {{ diffs.0 }} + {% endautoescape %}
+ {% if ver_old.altnames %} + Alternate names: {% autoescape off %} + {{ diffs.1 }} + {% endautoescape %} +
+ {% endif %} + {% if ver_old.plural %} + Plural Name: {% autoescape off %} + {{ diffs.2 }} + {% endautoescape %}
+ {% endif %} + + Content: {% autoescape off %} + {{ diffs.3 }} + {% endautoescape %}
+ - - - - - - - - + {% if nt1.get_rendered_nbh.authors %}Authors: + {% endif %} + {% for author in nt1.authors.all %} + + + {% if not forloop.last %}, {% endif %} + {% endfor %}
{% endwith %} {% endblock %} {% endblock %} @@ -192,12 +200,12 @@ -Difference between Selected Versions -{% block content5 %}{% for each in diffs %} - {% autoescape off %} - {{ each }}
- {% endautoescape %}{% endfor %} {% endblock %}
- + + + + + + -- cgit v1.1