/status: add missing template files.
Add missing templates that were forgotten in 7a87225ac.
This commit is contained in:
7
app/views/status/_list.html.erb
Normal file
7
app/views/status/_list.html.erb
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<%# hash %>
|
||||||
|
<dl>
|
||||||
|
<% hash.each do |key, value| %>
|
||||||
|
<dt><%= key.to_s.humanize %></dt>
|
||||||
|
<dd><%= value %></dd>
|
||||||
|
<% end %>
|
||||||
|
</dl>
|
||||||
19
app/views/status/_table.html.erb
Normal file
19
app/views/status/_table.html.erb
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<%# rows %>
|
||||||
|
|
||||||
|
<table class="striped">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<% rows.first.keys.each do |key| %>
|
||||||
|
<th><%= key.humanize %></th>
|
||||||
|
<% end %>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<% rows.each do |row| %>
|
||||||
|
<tr>
|
||||||
|
<% row.each do |key, value| %>
|
||||||
|
<td><%= value %></td>
|
||||||
|
<% end %>
|
||||||
|
</tr>
|
||||||
|
<% end %>
|
||||||
|
</table>
|
||||||
Reference in New Issue
Block a user