<div class="autoscroll">
<table class="list plugins">
  <thead>
  <tr>
    <th></th>
    <th class="header-42"><%= l(:field_name) %></th>
    <th class="header-13"><%= l(:field_author) %></th>
    <% if Redmine::Plugin.installed?(:easy_hosting_services) && !EasyHostingServices::EasyMultiTenancy.activated? %>
      <th class="header-13"></th>
      <th class="header-13"></th>
    <% end %>
    <th class="header-13"></th>
  </tr>
  </thead>
  <tbody>
  <% (@segregated_plugins_hash[bundle][:active] + @segregated_plugins_hash[bundle][:disabled]).each do |plugin| %>
    <tr class="<%= cycle('odd', 'even') %>">
      <%= content_tag(:td, bundle == :basic ? '' : check_box_tag('plugin_names[]', plugin.id, false, :id => nil), :class => 'checkbox hide-when-print') -%>
      <td class="name" <%= 'style=font-style:italic' if plugin.disabled? %>>
        <span class="name"><%= hh plugin.name %></span>
        <%= content_tag('span', link_to(hh(plugin.url), hh(plugin.url)), :class => 'url') unless plugin.url.blank? %>
      </td>
      <%= content_tag('td', easy_author_url(plugin), :class => 'author') %>
      <%= call_hook(:view_manage_plugins_row_buttons, {:bundle => bundle, :plugin => plugin}) if Redmine::Plugin.installed?(:easy_hosting_services) && !EasyHostingServices::EasyMultiTenancy.activated? %>
      <td class="configure fast-icons">
        <%= link_to(l(:button_configure), plugin_settings_path(plugin), :class => 'icon icon-settings button-positive') if plugin.configurable? %>
      </td>
    </tr>
  <% end %>
  </tbody>
</table>
</div>
