anchor.diff:        <% else %>
             <p class="none_text">None</p>
         <% end %>
  +
       </div>
     </div>
   
     <%= render :partial => "interaction", :locals =>
  -          { :run => @run, :interaction => @interaction } %>
  +          {:run => @run, :interaction => @interaction} %>
   
  -  <!--<%= render :partial => "outputs", :locals => { :run => @run } %>-->
  +  <!--<%= render :partial => "outputs", :locals => {:run => @run} %>-->
   
  -  <!-- Result output port names from the workflow -->
  -  <% result_output_port_names = workflow.output_ports.select{|output| (output.port_type.name == WorkflowOutputPortType::RESULT)}.collect{|i| i.name}  -%>
  -  <!-- Figure out result outputs from the run -->
  -  <% run_result_outputs = @run.outputs.select{|output| result_output_port_names.include?(output.name)}%>
     <div class="fold">
       <div class="foldTitle">
  -      Result Outputs (<%= run_result_outputs.count -%>)
  +      Outputs
       </div>
       <div class="foldContent">
  +
  +      <!-- Result output port names from the workflow -->
  +      <% result_output_port_names = workflow.output_ports.select { |output| (output.port_type.name == WorkflowOutputPortType::RESULT) }.collect { |i| i.name } -%>
  +      <!-- Figure out result outputs from the run -->
  +      <% run_result_outputs = @run.outputs.select { |output| result_output_port_names.include?(output.name) } %>
  +      <h2>Results (<%= run_result_outputs.count -%>)</h2>
         <% unless run_result_outputs.blank? -%>
             <div style="clear: both;"></div>
   
  
positive.code:       <% else %>
            <p class="none_text">None</p>
        <% end %>
      </div>
    </div>
  
    <!-- Parameter input port names from the workflow -->
    <% parameter_input_port_names = workflow.input_ports.select{|input| (input.port_type.name == WorkflowInputPortType::PARAMETER)}.collect{|i| i.name}  -%>
    <!-- Figure out parameter inputs from the run -->
    <% run_parameter_inputs = @run.inputs.select{|input| parameter_input_port_names.include?(input.name)}%>
    <!-- Figure out parameter inputs from the run -->
    <div class="fold">
      <div class="foldTitle">
        Parameter Inputs (<%= run_parameter_inputs.count -%>)
      </div>
      <div class="foldContent" style="display: none;">
        <% unless run_parameter_inputs.blank? -%>
            <table class="simple" style="width: 100%;">
              <% run_parameter_inputs.each do |b| -%>
                  <tr>
                    <td>
                      <h3><%= b.name %></h3>
                      <p>
                        <strong>Value:</strong>
                      </p>
                      <% unless b.value.blank? %>
                          <p><pre class="script_example_data_box"><%= b.value %></pre></p>
                      <% end %>
                      <% unless b.file_file_name.blank? %>
                          <p><%= link_to b.file_file_name, b.file.url %></p>
  
negative.code:       <% else %>
            <p class="none_text">None</p>
        <% end %>
  
        <!-- Error/log output port names from the workflow -->
        <% error_log_output_port_names = workflow.output_ports.select { |output| (output.port_type.name == WorkflowOutputPortType::ERROR_LOG) }.collect { |i| i.name } -%>
        <!-- Figure out error/log outputs from the run -->
        <% run_error_log_outputs = @run.outputs.select { |output| error_log_output_port_names.include?(output.name) } %>
        <h2>Errors/Logs (<%= run_error_log_outputs.count -%>)</h2>
        <% unless run_error_log_outputs.blank? -%>
            <div style="clear: both;"></div>
  
            <table class="simple" style="width: 100%;">
              <% run_error_log_outputs.each do |b| -%>
                  <tr>
                    <td>
                      <h3><%= b.name %></h3>
  
                      <p>
                        <strong>Value:</strong>
                        <%= "(#{b.metadata[:type]})" if b.depth == 0 %>
                        <%= show_output(@run, b) %>
                      </p>
                    </td>
                  </tr>
              <% end %>
            </table>
        <% else %>
            <p class="none_text">None</p>
        <% end %>
  
      </div>
    </div>
  
  