lib/cuukie/views/index.erb in cuukie-0.1.2 vs lib/cuukie/views/index.erb in cuukie-0.1.3

- old
+ new

@@ -7,11 +7,13 @@ <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="summary"> + <p id="stats"></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> @@ -33,15 +35,35 @@ <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> + <% unless step['table'].empty? %> + <table> + <% step['table'].each_with_index do |rowdata, row| %> + <tr class='step' id='row_-<%= row %>'> + <% rowdata.each_with_index do |value, col| %> + <td class="step" id="row_-<%= row %>_<%= col %>"><div><span class="step param"><%= value %></span></div></td> + <% end %> + </tr> + <% end %> + </table> + <% end %> + <% if step['multiline_string'] %> + <pre class="val"><%= step['multiline_string'] %></pre> + <% end %> </li> <% end %> </ol> </div> <% end %> </div> <% end %> + <script type="text/javascript"> + document.getElementById('duration').innerHTML = "Finished in <strong><%= @duration %> seconds</strong>"; + </script> + <script type="text/javascript"> + document.getElementById('stats').innerHTML = "<%= @stats[:scenarios] %><br/><%= @stats[:steps] %>"; + </script> </div> </body> </html> \ No newline at end of file