Commit e39db22d authored by Bruno Martin's avatar Bruno Martin
Browse files

fix course notes

parent a90dffc3
......@@ -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) {
......
{% 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">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment