Sha256: e76fd16af88d392183f6c7035c4d620fe8680be35cd6790cce86f81a43027da6
Contents?: true
Size: 1.79 KB
Versions: 9
Compression:
Stored size: 1.79 KB
Contents
<div class="table-responsive"> <table class="table table-hover members-table middle-align"> <thead> <tr> <th style="text-align: center;width:60px">#</th> <th>UUID</th> <th>Status</th> <th>Device Name</th> <th>Device Type</th> <!-- <th style="text-align: center;" colspan="2">Actions</th> --> </tr> </thead> <tbody> <% @devices.each_with_index do |device, i| %> <%# delete_link = registration_device_path(@registration, device) %> <tr id="tr_device_<%= device.id %>"> <th scope="row" style="text-align: center;"> <% if i < 0 %> <i class="fa fa-check text-success"></i> <% else %> <%= i + 1 + (@per_page.to_i * (@current_page.to_i - 1)) %> <% end %> </th> <td class="device-name" style="font-weight:bold;"><%= link_to device.uuid, registration_device_path(device), remote: true %></td> <td> <% if device.pending? %> <span class="ml-5 mt-5 label label-default">Pending</span> <% elsif device.verified? %> <span class="ml-5 mt-5 label label-success">Verified</span> <% elsif device.blocked? %> <span class="ml-5 mt-5 label label-danger">Blocked</span> <% end %> </td> <td class="device-name"><%= device.device_name %></td> <td class="device-name"><%= device.device_type %></td> <!-- <td class="action-links" style="width:10%"> --> <%#= link_to raw("<i class=\"linecons-trash\"></i> Remove Role"), delete_link, method: :delete, device: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete" %> <!-- </td> --> </tr> <% end %> </tbody> </table> </div> <div class="row"> <div class="col-sm-12"> <%= paginate_kuppayam(@devices) %> </div> </div>
Version data entries
9 entries across 9 versions & 1 rubygems