Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses-legacy
Commits
16a378d4
Commit
16a378d4
authored
4 years ago
by
Laury Bueno
Browse files
Options
Download
Email Patches
Plain Diff
[Dashboard] Call UserAccess
parent
73bf15e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
courses_legacy/static/js/core-services.js
courses_legacy/static/js/core-services.js
+5
-0
courses_legacy/static/js/dashboard/dashboard-controllers.js
courses_legacy/static/js/dashboard/dashboard-controllers.js
+4
-0
No files found.
courses_legacy/static/js/core-services.js
View file @
16a378d4
...
...
@@ -337,4 +337,9 @@
return
vd
;
}]);
app
.
factory
(
'
UserAccess
'
,
function
(
$resource
){
return
$resource
(
API_URL
+
'
/stats/user-access
'
,
{},
{
'
save
'
:
{
'
method
'
:
'
POST
'
,
'
ignoreLoadingBar
'
:
true
}});
});
})(
window
.
angular
);
This diff is collapsed.
Click to expand it.
courses_legacy/static/js/dashboard/dashboard-controllers.js
View file @
16a378d4
...
...
@@ -7,15 +7,19 @@
'
Course
'
,
'
CourseStudent
'
,
'
Topic
'
,
'
UserAccess
'
,
// 'Cards',
function
(
$scope
,
Course
,
CourseStudent
,
Topic
,
UserAccess
,
// Cards
)
{
(
new
UserAccess
({
area
:
'
dashboard
'
})).
$save
();
function
compare_by_course_student
(
a
,
b
)
{
if
(
a
.
course_student
===
undefined
)
{
return
1
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment