From 3cb2ec918bc09b0271dcd2c1b96464c2853719eb Mon Sep 17 00:00:00 2001 From: Seth Woodworth Date: Fri, 14 Jun 2013 20:41:11 -0400 Subject: [PATCH] simplify and future proof pdf specific template variables --- karmaworld/templates/notes/note_detail.html | 7 ++++--- karmaworld/templates/partial/pdfembed.html | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/karmaworld/templates/notes/note_detail.html b/karmaworld/templates/notes/note_detail.html index 352122b..8c396e6 100644 --- a/karmaworld/templates/notes/note_detail.html +++ b/karmaworld/templates/notes/note_detail.html @@ -35,7 +35,7 @@
- {% if note.file_type == 'pdf' %} + {% if pdf %}
@@ -44,14 +44,15 @@ id="noteframe" src="/pdfview/{{ note.id }}" onload="autoResize('noteframe')"> -
+ {% comment %} + # TODO: embed and pass the url with this included when we fix the css integration issues {% include 'partial/pdfembed.html' %} {% endcomment %} - {% else %} {# note.filetype == 'pdf' #} + {% else %} {# if pdf #}
diff --git a/karmaworld/templates/partial/pdfembed.html b/karmaworld/templates/partial/pdfembed.html index 2f5d65e..475f448 100644 --- a/karmaworld/templates/partial/pdfembed.html +++ b/karmaworld/templates/partial/pdfembed.html @@ -10,8 +10,7 @@ {% endcomment %} -- 2.25.1