[Issue #5] - Reworked app to better organize results with their corresponding tests
This commit is contained in:
22
views/test/view.erb
Normal file
22
views/test/view.erb
Normal file
@ -0,0 +1,22 @@
|
||||
<div class="grid-x grid-margin-x">
|
||||
<div class="cell small-12">
|
||||
<h1 <%- unless test.valid? %> class="invalid"<% end %>><%= test.formatted_name %></h1>
|
||||
<% unless test.valid? %>
|
||||
<h4 class="invalid">Missing <%= test.missing_results %> results!</h4>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<div class="cell small-12">
|
||||
<h3>Test results</h3>
|
||||
|
||||
<% if test.results.length > 0 %>
|
||||
<ul>
|
||||
<% test.results.each do |res| %>
|
||||
<li></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% else %>
|
||||
<p>There are no results</p>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user