Disabled thingiview for obj models, since thingiview's support for them seems to...
authorAeva Ntsc <aeva.ntsc@gmail.com>
Tue, 16 Oct 2012 06:02:05 +0000 (01:02 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 3 Dec 2012 20:40:48 +0000 (14:40 -0600)
mediagoblin/templates/mediagoblin/media_displays/stl.html

index 2fcca62d6631715626f4aff3e811f014f2b69a9c..ceabbf049c590811bc7b5a29050b000603dba92c 100644 (file)
@@ -119,11 +119,13 @@ window.show_things = function () {
      title="{%- trans %}Side{% endtrans -%}">
     {%- trans %}Side{% endtrans -%}
   </a>
+{% if media.media_data.file_type == "stl" %}
   <a id="webgl_button" class="button_action"
      onclick="show_things();"
      title="{%- trans %}WebGL{% endtrans -%}">
     {%- trans %}WebGL{% endtrans -%}
   </a>
+{% endif %}
 
   <a class="button_action" href="{{ model_download }}"
      title="{%- trans %}Download{% endtrans -%}"