Cruft from seperate log controller removed

This commit is contained in:
Christoph Haas 2018-08-13 15:02:11 +02:00
parent 2b3db52608
commit 80d21a1f90
6 changed files with 1 additions and 65 deletions

View file

@ -1,36 +0,0 @@
// Paginator and search bar
.grid-x
.small-6.medium-8.large-9.cell
// Paginator
= render 'admin/logs/paginator'
h1 Logs
.small-6.medium-4.large-3.cell
// Search form
= form_tag url_for, :method=>'GET'
= text_field_tag(:search, params[:search], placeholder: "Search...", maxlength: 50, size: 20, autofocus: true)
// List of log messages
.grid-x
- if @logs.length>0
table
tr
th Timestamp
th Message
th Level
th Section
th IP address
th Session token
- @logs.each do |log|
tr
td =log.created_at
td =log.message
td =log.level
td =log.section
td =log.ip_address
td =log.token
- else
p No logs found. Crazy.
// Second paginator at the bottom so the user does not have to scroll up again
= render 'admin/logs/paginator'