Sha256: d9779e98c2b111b58fff7f99819d78586b540624498b9e9635b7e31283c8bef1
Contents?: true
Size: 1.13 KB
Versions: 5
Compression:
Stored size: 1.13 KB
Contents
<script type="text/javascript"> function confirmDestroyAll() { if (!confirm('Are you sure want destroy all Exception logs?')) { return false; } } </script> <div class="toolbar"> <%= @logs.total_count %> exceptions <div class="pull-right"> <%= form_tag(export_logs_path, method: 'post') do %> <button type="submit" class="btn">Export last 3 months</button> <% end %> <%= 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">No exceptions.</div> <% else %> <%= 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> <%= paginate @logs %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems