From d7de69abfc5bfcf2a21778863337024f3bac0a84 Mon Sep 17 00:00:00 2001 From: Tom Price Date: Mon, 25 May 2015 23:31:39 +0100 Subject: [PATCH] Redesigned activity feed to "group" by user --- RIGS/templates/RIGS/activity_feed_data.html | 63 ++++++++++++--------- 1 file changed, 35 insertions(+), 28 deletions(-) diff --git a/RIGS/templates/RIGS/activity_feed_data.html b/RIGS/templates/RIGS/activity_feed_data.html index c7d6412c..cdc19d3f 100644 --- a/RIGS/templates/RIGS/activity_feed_data.html +++ b/RIGS/templates/RIGS/activity_feed_data.html @@ -6,35 +6,42 @@ {% block content %} {% if request.is_ajax %} - - {% for version in object_list %} - {% if version.item_changes or version.field_changes or version.old == None %} -
-
-
- - - +
+
+ {% for version in object_list %} + {% if version.item_changes or version.field_changes or version.old == None %} + {% ifchanged version.revision.user %} + {% if version != object_list|first %} +
{#/.media-body#} +
{#/.media#}
-
- {{version.revision.user.name}} - -
- - {% if version.old == None %} - Created - {% else %} - Changed {% include 'RIGS/version_changes.html' %} in - {% endif %} - - - {% include 'RIGS/object_button.html' with object=version.new %} - -
-
-
- {% endif %} - {% endfor %} +
+
+ {% endif %} +
+ + + +
+
+
{{ version.revision.user.name }}
+ {% else %} +
+ {% endifchanged %} + + {% if version.old == None %} + Created + {% else %} + Changed {% include 'RIGS/version_changes.html' %} in + {% endif %} + + {% include 'RIGS/object_button.html' with object=version.new %} + + {% endif %} + {% endfor %} +
+
+
{% endif %} {% endblock %} \ No newline at end of file