Sha256: a780b55533045eeef812962d76ef415ff6af427db6020af7f28a48fe40ea854a

Contents?: true

Size: 1.89 KB

Versions: 1

Compression:

Stored size: 1.89 KB

Contents

<% @items.each do |item| %>

  <div class="transformer <%= @item_type.gsub(/\s/,'') %>">
    <a name="<%= anchor_for item %>"></a>
    <div class="title">
      <span class="pre"><%= h item.keyword %></span>
      <span class="name"><%= h item.value %></span>
      <a style="float: right;" href="http://rubular.com/?regex=<%= urlencode item.value %>" target="_blank">Rubular</a>
      <div style="clear: both;"></div>
    </div>

    <div class="details">

      <div class="meta" style="clear: right;">
        <div class="file"><%= h item.location %></div>
      </div>

      <!-- Comments -->
      <div>
        <%= T('docstring').run(options.dup.merge({:object => item})) %>
      </div>

      <!-- Source Code -->
      <div class="method_details_list">
        <table class="source_code">
          <tr>
            <td>
              <pre class="lines"><%= "" %><%= h format_lines(item) %></pre>
            </td>
            <td>
              <pre class="code"><%= "" %><%= html_syntax_highlight item.source %></pre>
            </td>
          </tr>
        </table>
      </div>

      <!-- Matching Step Instances -->
      <div class="steps">
        <% if item.steps && !item.steps.empty? %>
          <% item.steps.each_with_index do |step,step_index| %>
            <div class="step <%= (step_index + 1) % 2 == 0 ? 'even' : 'odd' %>">
              <span class="predicate">
                <%= h step.keyword %>
              </span>
              <span class="defined">
                <%= link_transformed_step(step) %>
              </span>
              <a class="definition" href="<%= url_for step.scenario.feature %>"><%= h step.location %></a>
              <div style="clear: both;"></div>
            </div>
          <% end %>
        <% else %>
          <div class="undefined">No steps were found to match this <%= @item_type %>.</div>
        <% end%>
      </div>

    </div>

  </div>

<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cucumber-in-the-yard-1.7.2 lib/templates/default/steptransformers/html/transformers.erb