From 05e15441ae385ca1deab6ee1c9f2502549fad4b2 Mon Sep 17 00:00:00 2001 From: Lou Wolford Date: Wed, 13 Jul 2016 09:25:53 -0400 Subject: [PATCH] removed el-pagination b/c of timeouts --- adl_lrs/settings.py | 2 +- adl_lrs/templates/my_activity_states.html | 58 +++++++++++++++---- .../templates/my_activity_states_holder.html | 38 ------------ adl_lrs/templates/my_statements.html | 42 ++++++++++---- adl_lrs/templates/my_statements_holder.html | 22 ------- adl_lrs/views.py | 37 ++++++++---- requirements.txt | 1 - 7 files changed, 108 insertions(+), 92 deletions(-) delete mode 100644 adl_lrs/templates/my_activity_states_holder.html delete mode 100644 adl_lrs/templates/my_statements_holder.html diff --git a/adl_lrs/settings.py b/adl_lrs/settings.py index 9bcd1918..60f9e0b9 100644 --- a/adl_lrs/settings.py +++ b/adl_lrs/settings.py @@ -104,6 +104,7 @@ ALLOW_EMPTY_HTTP_AUTH = False OAUTH_ENABLED = True +AUTH_USER_MODEL = "auth.User" # OAuth1 callback views OAUTH_AUTHORIZE_VIEW = 'oauth_provider.views.authorize_client' OAUTH_CALLBACK_VIEW = 'oauth_provider.views.callback_view' @@ -252,7 +253,6 @@ 'oauth_provider', 'django.contrib.admin', 'jsonify', - 'el_pagination', 'corsheaders', ] diff --git a/adl_lrs/templates/my_activity_states.html b/adl_lrs/templates/my_activity_states.html index 28ad39fa..d4e5d492 100644 --- a/adl_lrs/templates/my_activity_states.html +++ b/adl_lrs/templates/my_activity_states.html @@ -41,7 +41,54 @@

My Activity States



- {% include page_template %} + {% if activity_states %} + + + {% else %} + No activity states to display + {% endif %}
@@ -68,13 +115,4 @@

My Activity States

} - - {% endblock extra_js %} \ No newline at end of file diff --git a/adl_lrs/templates/my_activity_states_holder.html b/adl_lrs/templates/my_activity_states_holder.html deleted file mode 100644 index 51338dfb..00000000 --- a/adl_lrs/templates/my_activity_states_holder.html +++ /dev/null @@ -1,38 +0,0 @@ -{% load el_pagination_tags %} -{% if activity_states %} -
- {% lazy_paginate activity_states %} - {% for as in activity_states %} -
- - -
{{ as.json_state }}
- - {% else %} - {% if as.content_type == "application/octect-stream" or as.content_type == "text/plain" %} -
Non-JSON
- - {% else %} - Cannot display state (non-text and non-JSON) - - {% endif %} - {% endif %} - {% if as.state_id == "https://w3id.org/xapi/adl/profiles/scorm/activity-state" %} -
- -
-
-
- {% endif %} -

-
-
-
- {% endfor %} - {% show_more %} -
-{% else %} - No activity states to display -{% endif %} \ No newline at end of file diff --git a/adl_lrs/templates/my_statements.html b/adl_lrs/templates/my_statements.html index 3c80fccb..b8c78575 100644 --- a/adl_lrs/templates/my_statements.html +++ b/adl_lrs/templates/my_statements.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load jsonify %} {% block extra_css %}