From: yomguy Date: Tue, 5 Feb 2013 15:30:54 +0000 (+0100) Subject: fix again X-Git-Tag: 0.9-probarreau~87 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3c592cc1ac73f76274ec4139ce100b22e2e3205b;p=teleforma.git fix again --- diff --git a/teleforma/templates/teleforma/course_document.html b/teleforma/templates/teleforma/course_document.html index c56bb7d7..1335c24b 100644 --- a/teleforma/templates/teleforma/course_document.html +++ b/teleforma/templates/teleforma/course_document.html @@ -23,7 +23,7 @@ $(document).ready(function(){ // // Fetch the PDF document from the URL using promices // -PDFJS.getDocument('{% url teleforma-document-download document.id %}').then(function(pdf) { +PDFJS.getDocument('{% url teleforma-document-download seminar.id document.id %}').then(function(pdf) { // Using promise to fetch the page pdf.getPage(1).then(function(page) { var scale = 1.5; diff --git a/teleforma/templates/teleforma/inc/document_list.html b/teleforma/templates/teleforma/inc/document_list.html index 40433bae..0982c352 100644 --- a/teleforma/templates/teleforma/inc/document_list.html +++ b/teleforma/templates/teleforma/inc/document_list.html @@ -17,9 +17,9 @@ {% if doc.course_type.all|length > 1 and type_counter > 1 %} {% else %} - {% if doc.file %}{% endif %} {{ doc.title }}{% if doc.file %}{% endif %} + {% if doc.file %}{% endif %} {{ doc.title }}{% if doc.file %}{% endif %} {{ doc.date_modified }} - {% if doc.file %}{% endif %} + {% if doc.file %}{% endif %} {% endif %} {% endfor %}