mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-24 17:02:18 +00:00
Added descriptive stuff
This commit is contained in:
@@ -280,8 +280,8 @@ class EventRevisions(generic.ListView):
|
|||||||
logger.info(thisRevision.revision.version_set.all())
|
logger.info(thisRevision.revision.version_set.all())
|
||||||
|
|
||||||
if revisionNo >= len(revisions)-1:
|
if revisionNo >= len(revisions)-1:
|
||||||
# current HEAD
|
# oldest version
|
||||||
thisItem['changes'] = {}
|
thisItem['changes'] = [["(event initially created)",None,"Event Created"]]
|
||||||
else:
|
else:
|
||||||
changes = self.compare(revisions[revisionNo+1].field_dict,thisRevision.field_dict)
|
changes = self.compare(revisions[revisionNo+1].field_dict,thisRevision.field_dict)
|
||||||
thisItem['item_changes'] = self.compare_items(revisions[revisionNo+1], thisRevision)
|
thisItem['item_changes'] = self.compare_items(revisions[revisionNo+1], thisRevision)
|
||||||
@@ -292,7 +292,8 @@ class EventRevisions(generic.ListView):
|
|||||||
logger.info(thisItem)
|
logger.info(thisItem)
|
||||||
|
|
||||||
context = {
|
context = {
|
||||||
'object_list': items
|
'object_list': items,
|
||||||
|
'object': thisEvent
|
||||||
}
|
}
|
||||||
|
|
||||||
return context
|
return context
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% extends request.is_ajax|yesno:"base_ajax.html,base.html" %}
|
{% extends request.is_ajax|yesno:"base_ajax.html,base.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% block title %}Revisions{% endblock %}
|
{% block title %}N{{ object.pk|stringformat:"05d" }} - Revision History{% endblock %}
|
||||||
|
|
||||||
{% block js %}
|
{% block js %}
|
||||||
<script src="{% static "js/tooltip.js" %}"></script>
|
<script src="{% static "js/tooltip.js" %}"></script>
|
||||||
@@ -14,6 +14,8 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<h2>N{{ object.pk|stringformat:"05d" }} - Revision History </h2>
|
||||||
|
<br>
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user