Sha256: 381ba6a49161fbfb96972fad0aee8a4217f2ea9e5446284bb385e33dd15af33a
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
<script type="text/javascript" charset="utf-8"> $(function() { $('#<%= @id %> .toggle').click(function() { $("#<%= @id %>Steps").toggle('blind'); var stateIndicator = $('#<%= @id %> a.toggle')[0] stateIndicator.innerHTML = (stateIndicator.innerHTML === '+' ? '-' : '+'); return false; }); }); </script> <div id="<%= @id %>" class="scenario"> <div class="title"> <a class="toggle">-</a> <span class="pre"><%= @scenario.keyword %>:</span> <span class="name"><%= h @scenario.value %></span> </div> <div class="meta"> <div class="file"><%= @scenario.location %></div> <% unless @scenario.tags.empty? %> <div class="tags"> <% @scenario.tags.each do |tag| %> <a href="<%= url_for tag %>"><%= tag.value %></a> <% end %> </div> <% end%> </div> <% unless @scenario.description.empty? %> <div class="description"> <%= h @scenario.description %> </div> <% end %> <div id="<%= @id %>Steps" class="steps"> <%= @scenario.steps.empty? ? erb(:no_steps_defined) : erb(:steps) %> </div> <%= erb(:outline) if @scenario.outline? %> </div>
Version data entries
3 entries across 3 versions & 1 rubygems