debshots/app/views/logs/index.html.slim

27 lines
680 B
Text

// Paginator and search bar
.row
.small-6.medium-8.large-9.columns
// Paginator
= render 'logs/paginator'
.small-6.medium-4.large-3.columns
// 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
.row
- if @logs.length>0
table
tr
th Timestamp
th Message
- @logs.each do |log|
tr
th =log.created_at
th =log.message
- else
p No logs found. Crazy.
// Second paginator at the bottom so the user does not have to scroll up again
= render 'logs/paginator'