Sha256: e459ce106d8a40effd50d5b9eb931163752e4f1d955280306f91c9a9e29b349a
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
<script type="text/javascript"> function confirmDestroyAll() { if (!confirm('This will destroy all Exception logs, are you sure?')) { return false; } } </script> <div class="toolbar"> <%= @logs.total_entries %> exceptions <div class="pull-right"> <%= form_tag(all_logs_path, method: 'delete') do %> <button type="submit" class="btn btn-danger" onclick="return confirmDestroyAll()">Delete All</button> <% end %> </div> </div> <% if @logs.blank? %> <div class="no-record">Good! This have no Exception logs.</div> <% else %> <%= will_paginate @logs %> <table class="table table-borded tabl"> <thead> <tr> <th>#</th> <th>Summary</th> <th class="date"></th> </tr> </thead> <tbody> <% @logs.each do |log| %> <tr> <td><%= log.id %></td> <td><%= link_to log.title, log %></td> <td class="date"><%= log.created_at.to_s %></td> </tr> <% end %> </tbody> </table> <%= will_paginate @logs %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exception-track-0.1.0 | app/views/exception_track/logs/index.html.erb |