Commits

Don Park  committed e34b915

display the date in the search results

  • Participants
  • Parent commits 74a07bb

Comments (0)

Files changed (1)

File 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| %>
-<li> <a href="/ap/<%=id["value"]["mac"]%>"> <%= id["value"]["essid"] %> 
-      <%= id["value"]["latitude"] %> <%= id["value"]["longitude"] %>
-      <%= id["value"]["mac"] %> </a></li>
+<tr>
+  <td> <a href="/ap/<%=id["value"]["mac"]%>">   <%= id["value"]["mac"] %> </a></td>
+  <td> <%= id["value"]["essid"] %> </td>
+  <td> <%= Time.parse(id["value"]["created_at"]).strftime("%Y-%m-%d %H:%M") %></td>
+  <td> (<%= id["value"]["latitude"] %>, <%= id["value"]["longitude"] %>) </td>
+</tr>
 <% end %>
+</table>