Sha256: 0bb2a5712685378b19bbc34bd70cbe4a95e8c7fe3dc3e0ed6719092ccbce4f68
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
<script type="text/javascript"> function confirmDestroyAll() { if (!confirm('Are you sure want destroy all Exception logs?')) { return false; } } </script> <div class="toolbar"> <a class="btn" href="/">Back to App</a> <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 %> <h1><%= pluralize(@logs.total_count, 'exception') %></h1> <%= 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
exception-track-1.3.0 | app/views/exception_track/logs/index.html.erb |
exception-track-1.2.0 | app/views/exception_track/logs/index.html.erb |