Sha256: 796c3b69e5311df9a54fee61f5e38db22ea4c8af57cad241286741170a320f1b

Contents?: true

Size: 1.51 KB

Versions: 1

Compression:

Stored size: 1.51 KB

Contents

<% if @warning_message.blank? %>
  <table id="plugins-table" class="table table-condensed table-striped mobile-data">
    <thead>
    <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Version</th>
      <th>Required configuration</th>
      <th></th>
    </tr>
    </thead>
    <tbody>
    <% plugins.each do |name, details| %>
        <tr>
          <td><%= name %></td>
          <td><%= details['type'] %></td>
          <td>
            <% unless details['versions'].nil? %>
              <% details['versions'].each do |kb_version, plugin_version| %>
                <% if kb_version.eql?(@kb_version) %>
                  &ensp;<%= plugin_version %>
                <% end %>
              <% end %>
            <% end %>
          </td>
          <td>
            <% unless (details['require'] || []).empty? %>
                <ul>
                  <% details['require'].each do |property| %>
                      <li><%= property %></li>
                  <% end %>
                </ul>
            <% end %>
          </td>
          <td><%= link_to '<i class="fa fa-cloud-download"></i>'.html_safe, plugin_install_path(:plugin_key => name), :method => :post, :title => 'Install' %></td>
        </tr>
    <% end %>
    </tbody>
  </table>
<% else %>
  <div class="alert alert-warning" role="alert"><%= @warning_message.html_safe %></div>
<% end %>

<%= javascript_tag do %>
  $(document).ready(function() {
    $('#plugins-table').dataTable({
      "dom": "t",
      "paging": false,
      "ordering": false
    });
  });
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
killbill-kpm-ui-1.0.2 app/views/kpm/plugins/_plugins_table.html.erb