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.2.5 app/views/extface/devices/index.html.erb
extface-0.2.4 app/views/extface/devices/index.html.erb
extface-0.2.3 app/views/extface/devices/index.html.erb
extface-0.2.2 app/views/extface/devices/index.html.erb
extface-0.2.1 app/views/extface/devices/index.html.erb
extface-0.2.0 app/views/extface/devices/index.html.erb
extface-0.1.9 app/views/extface/devices/index.html.erb
extface-0.1.8 app/views/extface/devices/index.html.erb
extface-0.1.7 app/views/extface/devices/index.html.erb
extface-0.1.6 app/views/extface/devices/index.html.erb
extface-0.1.5 app/views/extface/devices/index.html.erb
extface-0.1.4 app/views/extface/devices/index.html.erb
extface-0.1.3 app/views/extface/devices/index.html.erb
extface-0.1.2 app/views/extface/devices/index.html.erb
extface-0.1.1 app/views/extface/devices/index.html.erb