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
e39db22d
Commit
e39db22d
authored
6 years ago
by
Bruno Martin
Browse files
Options
Download
Email Patches
Plain Diff
fix course notes
parent
a90dffc3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
courses_legacy/static/js/notes/controllers.js
courses_legacy/static/js/notes/controllers.js
+2
-1
courses_legacy/templates/notes.html
courses_legacy/templates/notes.html
+2
-4
No files found.
courses_legacy/static/js/notes/controllers.js
View file @
e39db22d
...
...
@@ -59,7 +59,8 @@
}]).
controller
(
'
CourseNotesCtrl
'
,
[
'
$scope
'
,
'
$window
'
,
'
CourseUserNotes
'
,
'
Note
'
,
function
(
$scope
,
$window
,
CourseUserNotes
,
Note
)
{
var
course_slug
=
$window
.
location
.
pathname
.
split
(
'
/
'
)[
2
];
// FIXME Get course slug from timtec
var
course_slug
=
$window
.
location
.
pathname
.
split
(
'
/
'
)[
3
];
CourseUserNotes
.
query
({
course_slug
:
course_slug
},
function
(
lessons
){
function
compare
(
a
,
b
)
{
...
...
This diff is collapsed.
Click to expand it.
courses_legacy/templates/notes.html
View file @
e39db22d
{% extends 'base.html' %}
{% load i18n %}
{% load compress %}
{% load static %}
{% load staticfiles %}
{% block js %}
{{ block.super }}
...
...
@@ -30,12 +28,12 @@ notes my-notes
<section
class=
"content"
>
{% block notes_header %}
<div
class=
"page-header"
>
<h2><i
class=
"fa fa-angle-double-right"
></i>
{% trans "My Notes" %}
</h2>
<h2><i
class=
"fa fa-angle-double-right"
></i>
Minhas Anotações
</h2>
</div>
{% endblock %}
<p
ng-if=
"courses.length == 0"
>
{% trans "You have not made any notes yet." %}
Você ainda não fez nenhuma anotação.
</p>
{% verbatim %}
<div
class=
"courses courses-list"
ng-repeat=
"course in courses"
>
...
...
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