From: Seth Woodworth Date: Sat, 15 Jun 2013 00:41:11 +0000 (-0400) Subject: simplify and future proof pdf specific template variables X-Git-Tag: release-20150131~416 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3cb2ec918bc09b0271dcd2c1b96464c2853719eb;p=oweals%2Fkarmaworld.git simplify and future proof pdf specific template variables --- 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 %}