lib/cuukie/views/index.erb in cuukie-0.1.0 vs lib/cuukie/views/index.erb in cuukie-0.1.1

- old
+ new

@@ -1,20 +1,22 @@ <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <link rel="stylesheet" type="text/css" href="cucumber.css"> <script type="text/javascript" src="jquery-1.7.min.js"></script> - <script type="text/javascript" src="scenarios.js"></script> + <script type="text/javascript" src="cuukie.js"></script> <title>Cuukie</title> </head> <body> <div class="cucumber"><div id="cucumber-header"><div id="label"><h1>Cucumber Features</h1></div> <div id="summary"><!--<p id="totals"></p><p id="duration"></p>--> <div id="expand-collapse"><p id="expander">Expand All</p><p id="collapser">Collapse All</p></div> </div> </div> + + <script><%= @build_status %>Colors('cucumber-header')</script> <% @features.each do |feature| %> <div class="feature"> <h2><span class="val">Feature: <%= feature['short_name'] %></span></h2> <p class="narrative"><%= feature['description'].join '<br/>' %><bbr/r></p> @@ -23,16 +25,12 @@ <div class="scenario"> <span style="display: block;" class="scenario_file"><%= scenario['file_colon_line'] %></span> <h3 style="cursor: pointer;" id="<%= scenario['id'] %>"> <span class="keyword">Scenario: </span><span class="val"><%= scenario['name'] %></span> </h3> + <script><%= scenario['status'] %>Colors('<%= scenario['id'] %>');</script> <ol style="display: block;"> - <% scenario['steps'].each do |step| %> - <% if step['status'] == 'failed' %> - <script>makeRed('cucumber-header');makeRed('<%= scenario['id'] %>');</script> - <% elsif step['status'] == 'pending' %> - <script>makeRed('cucumber-header');makeYellow('<%= scenario['id'] %>');</script> - <% end %> + <% scenario['steps'].each do |step| %> <li id="features_" class="step <%= step['status'] %>"> <div class="step_name"> <span class="keyword"><%= step['keyword'] %></span><span class="step val"><%= step['name'] %></span> </div> <div class="step_file"><span><%= step['file_colon_line'] %></span></div> \ No newline at end of file