Sha256: 13789ff50b59ed4fa0c44321561414bd780364e3b85fb5df6bfd06198d1f9680

Contents?: true

Size: 812 Bytes

Versions: 2

Compression:

Stored size: 812 Bytes

Contents

<tr id="<%= dom_id query %>">
  <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-800">
    <%= query.content.name %>
  </td>
  <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
    <%= query.content.sql[0..80] %>
    <%= "..." if query.content.sql.size > 80 %>
  </td>
  <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
    <%= render RailsLiveDashboard::QueryDurationBadgeComponent.new(query.content.duration) %>
  </td>
  <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
    <%= query.created_at.strftime("%Y-%m-%d %H:%M:%S") %>
  </td>
  <td class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6">
    <%= link_to 'Show', rails_live_dashboard.query_path(query), class: 'text-indigo-600 hover:text-indigo-900' %>
  </td>
</tr>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_live_dashboard-0.2.0 app/views/rails_live_dashboard/queries/_query.html.erb
rails_live_dashboard-0.1.2 app/views/rails_live_dashboard/queries/_query.html.erb