diff --git a/RIGS/templates/RIGS/activity_feed.html b/RIGS/templates/RIGS/activity_feed.html index 273c72b9..96a3de5d 100644 --- a/RIGS/templates/RIGS/activity_feed.html +++ b/RIGS/templates/RIGS/activity_feed.html @@ -1,110 +1,47 @@ -{% extends request.is_ajax|yesno:"base_ajax_nomodal.html,base.html" %} - {% load static %} -{% load paginator from filters %} -{% load to_class_name from filters %} -{% block title %}Rigboard Activity Stream{% endblock %} + + + + + - - - - -{% endblock %} - -{% block content %} -{% if not request.is_ajax %} -
-
-
-

Rigboard Activity Stream

-
-
{% paginator %}
-
- {% endif %} - - - - - -
-
-
-
-

Recent Changes

-
- -
- {% for version in object_list %} - {% if version.item_changes or version.field_changes or version.old == None %} -
-
-
- - - -
-
- {{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 %} -
-
-
-
-
- - - - - {% if not request.is_ajax %} -
{% paginator %}
+ +
+
+

Recent Changes

+
+ +
+
+ +
- {% endif %} -{% endblock %} \ No newline at end of file + diff --git a/RIGS/templates/RIGS/activity_feed_data.html b/RIGS/templates/RIGS/activity_feed_data.html new file mode 100644 index 00000000..c7d6412c --- /dev/null +++ b/RIGS/templates/RIGS/activity_feed_data.html @@ -0,0 +1,40 @@ +{% extends request.is_ajax|yesno:"base_ajax_nomodal.html,base.html" %} + +{% load static %} +{% load paginator from filters %} +{% load to_class_name from filters %} + +{% block content %} + {% if request.is_ajax %} + + {% for version in object_list %} + {% if version.item_changes or version.field_changes or version.old == None %} +
+
+
+ + + +
+
+ {{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 %} +{% endblock %} \ No newline at end of file diff --git a/RIGS/templates/RIGS/index.html b/RIGS/templates/RIGS/index.html index e590ffb1..6f717cc4 100644 --- a/RIGS/templates/RIGS/index.html +++ b/RIGS/templates/RIGS/index.html @@ -13,6 +13,61 @@ {% endblock %} {% block content %} + + +

Rig Information Gathering System

@@ -20,7 +75,8 @@

Welcome back, {{ user.get_full_name }}, there are {{ rig_count }} rigs coming up.

-
+
+
@@ -29,9 +85,7 @@ Rigboard Calendar - - New Event - + New Event
TEC Forum @@ -79,8 +133,9 @@
-
- +
+ {% include 'RIGS/activity_feed.html' %}
+
{% endblock %} \ No newline at end of file diff --git a/RIGS/versioning.py b/RIGS/versioning.py index 6f7458d1..ccddede6 100644 --- a/RIGS/versioning.py +++ b/RIGS/versioning.py @@ -202,7 +202,7 @@ class ActivityTable(generic.ListView): class ActivityFeed(generic.ListView): model = reversion.revisions.Version - template_name = "RIGS/activity_feed.html" + template_name = "RIGS/activity_feed_data.html" paginate_by = 25 def get_queryset(self):