views/_service_info.erb in runit-man-1.8.1 vs views/_service_info.erb in runit-man-1.8.2
- old
+ new
@@ -6,17 +6,16 @@
<th scope="row"><%= h(service_info.name) %></th>
<td><%= service_info.uptime ? ('%.2f' % service_info.uptime) : '' %></td>
<td><%= stat_subst(service_info.stat) %></td>
<td>
<% if service_info.active? %>
+ <%= service_action service_info.name, :restart, t.runit.services.table.actions.restart, !service_info.down? %>
+ <%= service_action service_info.name, :down, t.runit.services.table.actions.stop, !service_info.down? %>
+ <%= service_action service_info.name, :up, t.runit.services.table.actions.start, service_info.down? %>
<% unless service_info.down? %>
- <%= service_action service_info.name, :restart, t.runit.services.table.actions.restart %>
- <%= service_action service_info.name, :down, t.runit.services.table.actions.stop %>
<% service_info.allowed_signals.each do |signal| %>
<%= service_signal service_info.name, signal, t.runit.services.table.signals[signal] %>
<% end %>
- <% else %>
- <%= service_action service_info.name, :up, t.runit.services.table.actions.start %>
<% end %>
<% if service_info.switchable? %>
<%= service_action service_info.name, :switch_down, t.runit.services.table.actions.switch_down %>
<% end %>
<% else %>