From 3c592cc1ac73f76274ec4139ce100b22e2e3205b Mon Sep 17 00:00:00 2001 From: yomguy Date: Tue, 5 Feb 2013 16:30:54 +0100 Subject: [PATCH] fix again --- teleforma/templates/teleforma/course_document.html | 2 +- teleforma/templates/teleforma/inc/document_list.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 %} -- 2.39.5