Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (35 sloc) 1.05 KB
<p id="notice"><%= notice %></p>
<h1>OreOre DNS</h1>
<table class='pure-table'>
<thead>
<tr>
<th>Name</th>
<th>Status</th>
<th colSpan="3">Operation</th>
</tr>
</thead>
<tbody>
<% @fake_dns_servers.each do |s| %>
<tr key="<%= s.id %>">
<td><%= s.name %></td>
<td>
<div class='pure-u-2-24'>
<%= react_component('StatusMessage', props: {server_id: s.id, initialStatus: s.status, tag: 'span'} ) %>
</div>
</td>
<td>
<%= react_component('StartButton', props: {server_id: s.id, initialStatus: s.status, tag: 'span'} ) %>
</td>
<td>
<%= link_to 'Show Console', fake_dns_server_path(s), class: 'pure-button ' %>
&nbsp;
</td>
<td>
<%= link_to 'Edit Config', edit_fake_dns_server_path(s), class: 'pure-button ' %>
</td>
</tr>
<% end %>
</tbody>
</table>
<div>&nbsp;</div>
<%= link_to 'New Fake Dns Server', new_fake_dns_server_path, class: 'pure-button pure-button-primary' %>