Sha256: ebd4c689108790bcf6d8b9d519657831a41e906f51c3195ce34931e0f8d1b72e

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

<% @steps.each_with_index do |step,index| %>
  <% @step = step %>

  <% if step.comments && step.comments.length > 0 %>
  <div class="comments developer"><%= htmlify_with_newlines step.comments %></div>
  <% end %>
  <div class="step <%= (index + 1) % 2 == 0 ? 'even' : 'odd' %>">
    <span class="predicate"><%= step.keyword %></span>

    <% if @scenario.outline? %>
      <%= h step.value %>
    <% else %>

      <% if step.definition %>
        <span class="defined">
          <%=  highlight_matches(step) %>
          <div class="definition developer">
            <a href="<%= url_for step.definition %>"><div class="valid">&nbsp;</div></a>
          </div>
        </span>
      <% else %>
        <span class="undefined">
          <%= h step.value %>
          <div class="definition developer">
            <a href="<%= url_for YARD::CodeObjects::Lucid::LUCID_STEPTRANSFORM_NAMESPACE %>#undefined_steps">
              <div class="invalid">&nbsp;</div>
            </a>
          </div>
        </span>
      <% end %>

    <% end %>
  </div>

  <%= erb(:table) if step.has_table? %>
  <%= erb(:docstring) if step.has_text? %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yard-lucid-0.5.0 lib/templates/default/feature/html/steps.erb
yard-lucid-0.4.0 lib/templates/default/feature/html/steps.erb
yard-lucid-0.3.0 lib/templates/default/feature/html/steps.erb
yard-lucid-0.2.0 lib/templates/default/feature/html/steps.erb
yard-lucid-0.1.0 lib/templates/default/feature/html/steps.erb