<% need_second_row = !service_info.files_to_view.empty? || !service_info.urls_to_view.empty? %> ><%= h(service_info.pid) %> <%= h(service_info.name) %> <%= '%5.2d' % service_info.uptime %> <%= stat_subst(service_info.stat) %> <% if service_info.active? %> <% 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 %> <% 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 %> <% 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) %> <% else %> <%= t.runit.services.table.values.log_absent %> <% end %> <% if need_second_row %> <% unless service_info.files_to_view.empty? %> <%= h(t.runit.services.table.values.files_to_view) %>: <% service_info.files_to_view.each do |f| %> <%= h(f) %> <% end %> <% end %> <% unless service_info.urls_to_view.empty? %> <%= h(t.runit.services.table.values.urls_to_view) %>: <% service_info.urls_to_view.each do |url| %> <%= h(url) %> <% end %> <% end %> <% end %>