diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/static/ndf/js/meta_info.js b/gnowsys-ndf/gnowsys_ndf/ndf/static/ndf/js/meta_info.js new file mode 100644 index 0000000000..a97adc2ec5 --- /dev/null +++ b/gnowsys-ndf/gnowsys_ndf/ndf/static/ndf/js/meta_info.js @@ -0,0 +1,24 @@ +var header_logo_dataURL; +function toDataUrl(url, callback) { + var xhr = new XMLHttpRequest(); + xhr.onload = function() { + var reader = new FileReader(); + reader.onloadend = function() { + callback(reader.result); + } + reader.readAsDataURL(xhr.response); + }; + xhr.open('GET', url); + xhr.responseType = 'blob'; + xhr.send(); +} + +toDataUrl('/static/ndf/images/Clix-logo.png', function(myBase64) { + header_logo_dataURL = myBase64; // myBase64 is the base64 string +}); + + +function get_current_datetime_val(){ + var date = new Date(); + return date.toDateString() + " " + date.toLocaleTimeString() +} diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/admin_course_analytics.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/admin_course_analytics.html new file mode 100644 index 0000000000..81f370a577 --- /dev/null +++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/admin_course_analytics.html @@ -0,0 +1,237 @@ +{% load i18n %} +{% load multiply from simple_filters %} +{% load get_group_object check_is_gstaff get_profile_full_name from ndf_tags %} + + + + + + + + + + + + + + + + + +{% get_profile_full_name request.user as req_user_full_name %} +