Sha256: b7168660667c8b3c8b55627119a7545e5cd72af33583fabd1b2518133f140ca1
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
<% content_for(:email_count) do %> <%= @email_lead_count if @email_lead_count > 0%> <% end %> <% if @email_lead_count >0 %> <a href="<%=download_csv_path%>.csv"><button>Download all as CSV</button></a> <table> <tr> <th>Email</th> <th>Ip address</th> <th>Referer</th> <th>Lat</th> <th>Long</th> <th>City</th> <th>Country</th> <th>Active</th> <th></th> </tr> <% @email_leads.each do |email_lead| %> <tr> <td><%= email_lead.email %></td> <td><%= email_lead.ip_address %></td> <td><%= email_lead.referer %></td> <td><%= email_lead.lat %></td> <td><%= email_lead.long %></td> <td><%= email_lead.city %></td> <td><%= email_lead.country %></td> <td><%= email_lead.active %></td> <td><%= link_to 'Destroy', email_lead, method: :delete, data: { confirm: 'Are you sure?' } %></td> </tr> <% end %> <tr> <td colspan="9"> <%= paginate @email_leads %> </td> </tr> </table> <% else %> <h1>No Email Leads captured yet :(</h1> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
glengarry-0.0.4 | app/views/glengarry/email_leads/index.html.erb |
glengarry-0.0.3 | app/views/glengarry/email_leads/index.html.erb |