Sha256: 3d319ce37ff8d6d1d83749cd0c0c2386ab7485a2daa8e866b805ec25ce480479

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

<div class="mb-6 flex items-center gap-2">
  <%= lucide_icon('monitor-smartphone', class: 'w-5 h-5') %>

  <h1 class="font-bold flex-grow">
    devices
  </h1>
</div>

<div class="overflow-x-auto">
  <table class="table bg-base-100">
    <!-- head -->
    <thead>
      <tr>
        <th class="w-10"></th>
        <th>browser</th>
        <th>os</th>
        <th>ip address</th>
        <th class="text-right">owner</th>
      </tr>
    </thead>
    <tbody>
      <% @devices.each do |device| %>
        <tr>
        <td class="w-10">
          <%= lucide_icon(device_icon(device), size: 16) %>
        </td>
          <td class="truncate">
            <%= device.name %>
          </td>
          <td class="text-xs whitespace-nowrap">
            <%= device.os_name%>
          </td>
          <td class="text-xs whitespace-nowrap">
            <%= device.ip_address %>
          </td>
          <td class="text-right">
            <a class="underline" href="<%= manage_actor_path(device.actor) %>">
              <%= device.actor&.nickname || 'unknown' %>
            </a>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

<%== pagy_nav(@pagy) %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
masks-0.4.0 app/views/masks/manage/devices/index.html.erb