Sha256: 17486dee070813b7485668c302ac6dcec3b89793181f85b38526cc02d2304e4f

Contents?: true

Size: 1.11 KB

Versions: 75

Compression:

Stored size: 1.11 KB

Contents

<div class="page-header nav">
  <%= link_to new_device_path, class: 'btn btn-default navbar-btn pull-right' do %>
    + <%= t('.new') %>
  <% end %>
  <h3 class='navbar-text'>
    <%= link_to extface.root_path do %>
      Extface<sup>&hearts;</sup>
    <% end %>
    &raquo;
    <%= t('.devices') %>
  </h3>
</div>
<br />
<table class="table table-condensed table-stripped">
  <thead>
    <tr class='active'>
      <th><%= t('.name') %></th>
      <th><%= t('.parent') %></th>
      <th><%= t('.driver') %></th>
      <th>&nbsp;</th>
      <th>&nbsp;</th>
    </tr>
  </thead>
  <tbody>
    <% @devices.each do |device| %>
      <tr>
        <td><%= link_to device.name, device %></td>
        <td><%= device.extfaceable.composite_id %></td>
        <td><%= device.driver ? device.driver.class::NAME : 'N/A' %></td>
        <td class='text-right'><%= link_to 'Edit', edit_device_path(device), class: 'btn btn-primary btn-sm' %></td>
        <td class='text-right'><%= button_to 'Delete', device, method: :delete, class: 'btn btn-danger btn-sm', data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
extface-0.4.5 app/views/extface/devices/index.html.erb
extface-0.4.4b app/views/extface/devices/index.html.erb
extface-0.4.4a app/views/extface/devices/index.html.erb
extface-0.4.4 app/views/extface/devices/index.html.erb
extface-0.4.3g app/views/extface/devices/index.html.erb
extface-0.4.3f app/views/extface/devices/index.html.erb
extface-0.4.3e app/views/extface/devices/index.html.erb
extface-0.4.3d app/views/extface/devices/index.html.erb
extface-0.4.3c app/views/extface/devices/index.html.erb
extface-0.4.3b app/views/extface/devices/index.html.erb
extface-0.4.3a app/views/extface/devices/index.html.erb
extface-0.4.2a app/views/extface/devices/index.html.erb
extface-0.4.2 app/views/extface/devices/index.html.erb
extface-0.4.1b app/views/extface/devices/index.html.erb
extface-0.4.1a app/views/extface/devices/index.html.erb
extface-0.4.0 app/views/extface/devices/index.html.erb
extface-0.3.0c app/views/extface/devices/index.html.erb
extface-0.3.0b app/views/extface/devices/index.html.erb
extface-0.3.0a app/views/extface/devices/index.html.erb
extface-0.3.0 app/views/extface/devices/index.html.erb