Indenting some stuff in pdf.html and wrapping width and height parameters in quotes
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 20 Jun 2013 23:14:14 +0000 (18:14 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 20 Jun 2013 23:14:14 +0000 (18:14 -0500)
mediagoblin/templates/mediagoblin/media_displays/pdf.html

index e946f3aba35061cc165faddd40331a958605baef..9319e87cee7e27178856f0e6300b06a14414ca73 100644 (file)
 {%- endblock %}
 
 {% block mediagoblin_media %}
-{% if pdf_js %}
-<iframe width=640px height=480px
-    src="{{ request.staticdirect('/extlib/pdf.js/web/viewer.html') }}?file={{ pdf_view }} ">
-</iframe>
-
-{% else %}
-  <a href="{{ pdf_view }}">
-  <img id="medium"
-  class="media_image"
-  src="{{ medium_view }}"
-  alt="{% trans media_title=media.title -%} Image for {{ media_title}}{% endtrans %}"/>
-  </a>
-{% endif %}
+  {% if pdf_js %}
+    <iframe width="640px" height="480px"
+        src="{{ request.staticdirect('/extlib/pdf.js/web/viewer.html') }}?file={{ pdf_view }} ">
+    </iframe>
+  {% else %}
+    <a href="{{ pdf_view }}">
+    <img id="medium"
+         class="media_image"
+         src="{{ medium_view }}"
+         alt="
+           {%- trans media_title=media.title -%}
+             Image for {{ media_title}}
+           {%- endtrans %}"/>
+    </a>
+  {% endif %}
 {% endblock %}
 
 {% block mediagoblin_sidebar %}