Sha256: 44e669d764939c834e734a1c9872470894a0bedeaabe8b2d52cae801e0ef2618

Contents?: true

Size: 1.06 KB

Versions: 8

Compression:

Stored size: 1.06 KB

Contents

<% if @matcher.nil? %>
<p>There is currently no matcher for this scenario.</p>
<% else %>
<table class="list">
  <thead>
    <tr>
      <th>Value 1</th>
      <th></th>
      <th>Value 2</th>
      <th></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <%- comparisons = @matcher.comparisons -%>
    <tr>
      <td><%= comparisons[0].lhs_label %></td>
      <td><%= comparisons[0].operator_symbol %></td>
      <td><%= comparisons[0].rhs_label %></td>
      <td rowspan="<%= comparisons.length %>"><a href="/projects/<%= @project.id %>/scenarios/<%= @scenario.id %>/matchers/<%= @matcher.id %>/edit">Edit</a></td>
      <td rowspan="<%= comparisons.length %>"><%= delete_link("Delete", "/projects/#{@project.id}/scenarios/#{@scenario.id}/matchers/#{@matcher.id}") %></td>
    </tr>
    <%- comparisons[1..-1].each_with_index do |comparison, j| -%>
    <tr<%= " class='alt'" if j % 2 == 0 %>>
      <td><%= comparison.lhs_label %></td>
      <td><%= comparison.operator_symbol %></td>
      <td><%= comparison.rhs_label %></td>
    </tr>
    <%- end -%>
  </tbody>
</table>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
coupler-0.0.9-java webroot/views/matchers/list.erb
coupler-0.0.8-java webroot/views/matchers/list.erb
coupler-0.0.7-java webroot/views/matchers/list.erb
coupler-0.0.6-java webroot/views/matchers/list.erb
coupler-0.0.4-java webroot/views/matchers/list.erb
coupler-0.0.3-java webroot/views/matchers/list.erb
coupler-0.0.2-java webroot/views/matchers/list.erb
coupler-0.0.1-java webroot/views/matchers/list.erb