Sha256: 4bf440b4858a51125bee3a5eae16623d13b3540e2db8e02d6fc8d4c25c733e51
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
<h1 class="project-banner <%= @project.color %>" style="margin-bottom: 12px;"> <small>Tests for</small> <%= @project.name %> </h1> <div class="nomargin"> <table id="project_tests" class="table table-sortable table-striped project-tests"> <thead> <tr> <td class="table-margin"></td> <th class="test-name sort-asc">Name</th> <th class="test-passes">Passes</th> <th class="test-fails">Fails</th> <td class="table-margin"></td> </tr> </thead> <tbody> <% @tests.each do |(id, suite, name, passes, fails)| %> <tr class="test"> <td class="table-margin"></td> <td class="test-name"> <%= link_to project_test_url(slug: @project.slug, id: id) do %> <span class="test-suite-name"><%= suite.gsub("__", "::") %></span> <span class="test-name"><%= name.to_s.gsub(/^(test :|: )/, "") %></span> <% end %> </td> <td class="test-passes <%= "zero" if passes.zero? %>"><%= passes %></td> <td class="test-fails <%= "zero" if fails.zero? %>"><%= fails %></td> </tr> <% end %> </tbody> </table> </div> <% content_for :javascripts do %> <script type="text/javascript"> $(function() { $('#project_tests').tablesorter(); }); </script> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
houston-core-0.6.0 | app/views/project_tests/index.html.erb |
houston-core-0.5.6 | app/views/project_tests/index.html.erb |