Source

geomena / sinatra / views / essids.erb

Search: <%= essid %>
<table>
  <thead>
    <tr>
      <td> MAC</td>
      <td> ESSID</td>
      <td> Received on</td>
      <td> Lat,Long</td>
    </tr>
  </thead>
<% essids.each do |id| %>
<tr>
  <td> <a href="/ap/<%=id["value"]["mac"]%>">   <%= id["value"]["mac"] %> </a></td>
  <td> <%= id["value"]["essid"] %> </td>
  <td> <% if id["value"]["created_at"] %> <%= Time.parse(id["value"]["created_at"]).strftime("%Y-%m-%d %H:%M") %> <% end %></td>
  <td> (<%= id["value"]["latitude"] %>, <%= id["value"]["longitude"] %>) </td>
</tr>
<% end %>
</table>