diff --git a/RIGS/rigboard.py b/RIGS/rigboard.py index 54577d6f..ac11448d 100644 --- a/RIGS/rigboard.py +++ b/RIGS/rigboard.py @@ -280,8 +280,8 @@ class EventRevisions(generic.ListView): logger.info(thisRevision.revision.version_set.all()) if revisionNo >= len(revisions)-1: - # current HEAD - thisItem['changes'] = {} + # oldest version + thisItem['changes'] = [["(event initially created)",None,"Event Created"]] else: changes = self.compare(revisions[revisionNo+1].field_dict,thisRevision.field_dict) thisItem['item_changes'] = self.compare_items(revisions[revisionNo+1], thisRevision) @@ -292,7 +292,8 @@ class EventRevisions(generic.ListView): logger.info(thisItem) context = { - 'object_list': items + 'object_list': items, + 'object': thisEvent } return context diff --git a/RIGS/templates/RIGS/event_version_list.html b/RIGS/templates/RIGS/event_version_list.html index 1fcff13e..1ec99b1a 100644 --- a/RIGS/templates/RIGS/event_version_list.html +++ b/RIGS/templates/RIGS/event_version_list.html @@ -1,7 +1,7 @@ {% extends request.is_ajax|yesno:"base_ajax.html,base.html" %} {% load static %} -{% block title %}Revisions{% endblock %} +{% block title %}N{{ object.pk|stringformat:"05d" }} - Revision History{% endblock %} {% block js %} @@ -14,6 +14,8 @@ {% endblock %} {% block content %} +

N{{ object.pk|stringformat:"05d" }} - Revision History

+