%
need_second_row = !service_info.files_to_view.empty? || !service_info.urls_to_view.empty?
%>
><%= h(service_info.pid) %> |
<%= h(service_info.name) %> |
<%= service_info.uptime ? ('%.2f' % service_info.uptime) : '' %> |
<%= stat_subst(service_info.stat) %> |
<% 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_info.allowed_signals.each do |signal| %>
<%= service_signal service_info.name, signal, t.runit.services.table.signals[signal] %>
<% end %>
<% end %>
<% if service_info.switchable? %>
<%= service_action service_info.name, :switch_down, t.runit.services.table.actions.switch_down %>
<% end %>
<% else %>
<% if service_info.switchable? %>
<%= service_action service_info.name, :switch_up, t.runit.services.table.actions.switch_up %>
<% end %>
<% end %>
|
<% if service_info.logged? %>
<%= log_link(service_info.name, :hint => t.runit.services.table.values.log_hint(service_info.name), :blank => true, :title => service_info.log_file_location) %>
<%= log_downloads_link(service_info.name) %>
<% else %>
<%= t.runit.services.table.values.log_absent %>
<% end %>
|
<% if need_second_row %>