Started work to redo the UI for database changes
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
<tbody>
|
||||
<% hardware.each do |h| %>
|
||||
<tr>
|
||||
<td><%= h.name %></td>
|
||||
<td><a href="/hardware/<%= h.id %>"><%= h.name %></a></td>
|
||||
<td><%= h.type %></td>
|
||||
<td><%= date_format(h.created_at) %></td>
|
||||
<td><%= date_format(h.updated_at) %></td>
|
||||
|
20
views/hardware/view.erb
Normal file
20
views/hardware/view.erb
Normal file
@ -0,0 +1,20 @@
|
||||
<div class="grid-x grid-margin-x">
|
||||
<div class="cell small-12">
|
||||
<h1><%= hardware.name %></h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="grix-x grix-margin-x">
|
||||
<div class="cell small-12">
|
||||
<%= hardware.type %>
|
||||
</div>
|
||||
|
||||
<div class="cell small-12">
|
||||
<h4>Tests involving this hardware:</h4>
|
||||
<ul>
|
||||
<% hardware.tests().each do |t| %>
|
||||
<li><a href="/test/<%= t.id %>"><% t.date_tag %></a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user