myGrid/taverna-player

View on GitHub
app/views/taverna_player/runs/show.js.erb

Summary

Maintainability
Test Coverage
<%
  # Copyright (c) 2013 The University of Manchester, UK.
  #
  # BSD Licenced. See LICENCE.rdoc for details.
  #
  # Taverna Player was developed in the BioVeL project, funded by the European
  # Commission 7th Framework Programme (FP7), through grant agreement
  # number 283359.
  #
  # Author: Robert Haines
%>

jQuery("#run-info").replaceWith('<%= escape_javascript(render("info", :run => @run)) %>');

jQuery("#run-button").replaceWith('<%= escape_javascript(render("button", :run => @run)) %>');

<% if @interaction.nil? || @new_interaction %>
  jQuery("#run-interaction").replaceWith('<%= escape_javascript(render("interaction", :run => @run, :interaction => @interaction)) %>');
<% end %>

<% if @run.complete? %>
  jQuery("#run-outputs").replaceWith('<%= escape_javascript(render("outputs", :run => @run)) %>');
<% else %>
  jQuery("#run-poll").replaceWith('<%= escape_javascript(render("poll", :reload => run_path(@run))) %>');
<% end %>