From: Aeva Ntsc Date: Tue, 16 Oct 2012 05:38:39 +0000 (-0500) Subject: Updated the template for viewing stl models. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=418d1b149b7ab16786cea37f8ef7f66d433fc688;p=mediagoblin.git Updated the template for viewing stl models. --- diff --git a/mediagoblin/templates/mediagoblin/media_displays/stl.html b/mediagoblin/templates/mediagoblin/media_displays/stl.html index 6fd2b04d..2fcca62d 100644 --- a/mediagoblin/templates/mediagoblin/media_displays/stl.html +++ b/mediagoblin/templates/mediagoblin/media_displays/stl.html @@ -22,53 +22,127 @@ {% block mediagoblin_media %} -test... -{% set display_media = request.app.public_store.file_url( +{% set model_download = request.app.public_store.file_url( media.get_display_media(media.media_files)) %} +{% set perspective_view = request.app.public_store.file_url( + media.media_files['perspective']) %} +{% set top_view = request.app.public_store.file_url( + media.media_files['top']) %} +{% set side_view = request.app.public_store.file_url( + media.media_files['side']) %} +{% set front_view = request.app.public_store.file_url( + media.media_files['front']) %} + + - -
- +{% trans media_title=media.title -%}
+        Image for {{ media_title }}{% endtrans %} +{% trans media_title=media.title -%}
+        Image for {{ media_title }}{% endtrans %} +{% trans media_title=media.title -%}
+        Image for {{ media_title }}{% endtrans %} +
+ + +
+ - {%- trans %}Toggle Rotate{% endtrans -%} + {%- trans %}Perspective{% endtrans -%} + + + {%- trans %}Front{% endtrans -%} - - {%- trans %}Download{% endtrans -%} + + {%- trans %}Top{% endtrans -%} + + + {%- trans %}Side{% endtrans -%} + + + {%- trans %}WebGL{% endtrans -%} -

+ + + {%- trans %}Download model{% endtrans -%} + +
{% endblock %} {% block mediagoblin_sidebar %} -{# - # - # - #} +

debug info

+ {% endblock %}