Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/includes/content-display.html
Show All 34 Lines | <div class="swh-content"> | ||||
<div class="py-2"> | <div class="py-2"> | ||||
<button class="btn btn-default btn-sm" id="pdf-prev">Previous</button> | <button class="btn btn-default btn-sm" id="pdf-prev">Previous</button> | ||||
<span>Page: <span id="pdf-page-num"></span> / <span id="pdf-page-count"></span></span> | <span>Page: <span id="pdf-page-num"></span> / <span id="pdf-page-count"></span></span> | ||||
<button class="btn btn-default btn-sm" id="pdf-next">Next</button> | <button class="btn btn-default btn-sm" id="pdf-next">Next</button> | ||||
</div> | </div> | ||||
<canvas id="pdf-canvas"></canvas> | <canvas id="pdf-canvas"></canvas> | ||||
</div> | </div> | ||||
{% elif content %} | {% elif content %} | ||||
Content with mime type {{ swh_object_metadata.mimetype }} can not be displayed. | Content with mime type {{ swh_object_metadata.mimetype }} and encoding | ||||
{{ swh_object_metadata.encoding }} can not be displayed. | |||||
ardumont: `cannot` | |||||
{% else %} | {% else %} | ||||
{% include "includes/http-error.html" %} | {% include "includes/http-error.html" %} | ||||
{% endif %} | {% endif %} | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<script> | <script> | ||||
{% if "application/pdf" == mimetype %} | {% if "application/pdf" == mimetype %} | ||||
Show All 26 Lines |
cannot