From: Seth Woodworth Date: Tue, 4 Jun 2013 01:34:17 +0000 (-0400) Subject: make notes render the pdfview in an iframe for pdfs X-Git-Tag: release-20150131~427 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=750146752aea9403df7fea2257b825baaa8eb723;p=oweals%2Fkarmaworld.git make notes render the pdfview in an iframe for pdfs --- diff --git a/karmaworld/templates/notes/note_detail.html b/karmaworld/templates/notes/note_detail.html index b6e80f8..7e2c519 100644 --- a/karmaworld/templates/notes/note_detail.html +++ b/karmaworld/templates/notes/note_detail.html @@ -37,14 +37,18 @@
{% if note.file_type == 'pdf' %} - - - - +
+
+ +
+
+ {% comment %} {% include 'partial/pdfembed.html' %} + {% endcomment %} {% else %} {# note.filetype == 'pdf' #} @@ -52,8 +56,7 @@
{% if note.html %}
- +
{% else %} {# note.html #}