<%- has_kpm_plugin = kpm_plugin_installed?(nodes_info) %> <% nodes_info.each do |node_info| %> <% end %>
Node Uptime Kill Bill version Dependencies Plugins
<%= node_info.node_name %> <% unless node_info.boot_time.blank? %> <%= time_ago_in_words(DateTime.parse(node_info.boot_time)) %> <% end %> <%= node_info.kb_version %>
  • API: <%= node_info.api_version %>
  • Plugin API: <%= node_info.plugin_api_version %>
  • Platform: <%= node_info.platform_version %>
  • Commons: <%= node_info.common_version %>
<% unless (node_info.plugins_info || []).empty? %>
    <% node_info.plugins_info.each do |plugin_info| %>
  • <%= plugin_info.plugin_name %> <%= plugin_info.version %> <%= plugin_info.state %> <% if plugin_info.state == 'RUNNING' %> <%-# If there is not plugin_key, this is most likely a pure OSGI bundle. In that case, we don't want to allow stopping it as we would lose track of it (once it's removed from the OSGI bundle registry, we don't know about it anymore) -%> <% unless plugin_info.plugin_key.nil? %> <%= link_to ''.html_safe, plugin_stop_path(:plugin_key => plugin_info.plugin_key, :plugin_name => plugin_info.plugin_name, :plugin_version => plugin_info.version), :method => :post, :title => 'Stop', :remote => true, :class => 'plugin-link' %> <% end %> <%= link_to ''.html_safe, plugin_restart_path(:plugin_key => plugin_info.plugin_key, :plugin_name => plugin_info.plugin_name, :plugin_version => plugin_info.version), :method => :post, :title => 'Restart', :remote => true, :class => 'plugin-link' %> <% elsif plugin_info.state == 'INSTALLED' || plugin_info.state == 'STOPPED' %> <%= link_to ''.html_safe, plugin_start_path(:plugin_key => plugin_info.plugin_key, :plugin_name => plugin_info.plugin_name, :plugin_version => plugin_info.version), :method => :post, :title => 'Start', :remote => true, :class => 'plugin-link' %> <% end %> <% if !plugin_info.version.nil? && has_kpm_plugin %> <%= link_to ''.html_safe, plugin_uninstall_path(:plugin_key => plugin_info.plugin_key, :plugin_name => plugin_info.plugin_name, :plugin_version => plugin_info.version), :method => :post, :title => 'Uninstall', :remote => true, :class => 'plugin-link' %> <% end %>
  • <% end %>
<% end %>
<%= javascript_tag do %> $(document).ready(function() { $('#nodes-table').dataTable({ "dom": "t", "paging": false, "ordering": false }); }); <% end %>