<div>
  <% if @model.name =~ /3D/ %>
  <p>Sorry, but 3D models cannot be viewed as applets.  You must download this model to try it.</p>
  <% else %>
  <applet
     code="org.nlogo.applet.LiteApplet"
     align="baseline"
     width="<%= @model.dimensions[:width] -%>" height="<%= @model.dimensions[:height] -%>"
     archive="/applet/<%= @model.netlogo_version_for_applet -%>/NetLogoLite.jar">
    <param name="DefaultModel" value="<%= url_for :controller => :browse, :action => :model_contents, :id => @model.id %> ">
  </applet>
  <% end %>

<div id="applet-html"><%= @applet_html -%></div>

</div>

<div>
  <% if @model.name =~ /3D/ %>
  <p>Sorry, but 3D models cannot be viewed as applets.  You must download this model to try it.</p>
  <% else %>
  <applet
     code="org.nlogo.lite.Applet"
     align="baseline"
     width="<%= @model.dimensions[:width] -%>" height="<%= @model.dimensions[:height] -%>"
     archive="/applet/<%= @model.netlogo_version_for_applet -%>/NetLogoLite.jar">
    <param name="DefaultModel" value="<%= url_for :controller => :browse, :action => :model_contents, :id => @model.id %> ">
  </applet>
  <% end %>

<div id="applet-html"><%= @applet_html -%></div>

</div>

Revert "Perhaps the applet class was changed?!?"
Revert "Perhaps the applet class was changed?!?"

This reverts commit 5cd28ec78282655440754afec35c372dbb7e50d4 [formerly 0232dd575b86c12ff18b4cb1f283b86bca2f5c45].


Former-commit-id: 26e1cab5c95d1ed89931b43ddf5cd53b3715db10