- content_for :header do = javascript_include_tag 'new' %script{:type=>"text/javascript"} $(function () { $('#since_datetime').datetimepicker({ showButtonPanel: true, dateFormat: "yy-mm-dd", controlType: "slider"} ); $('#until_datetime').datetimepicker({ showButtonPanel: true, dateFormat: "yy-mm-dd", controlType: "slider"} ); }); %h1 Login status =render partial: 'report_menu' =render partial: 'date_range', locals: {param_text: 'Login date range:', title: 'Query login stat in the range' } %table.info %thead %tr.info-head %th login %th full name %th login count %th earliest %th latest %tbody - @logins.each do |l| %tr{class: cycle('info-even','info-odd')} %td= l[:login] %td= l[:full_name] %td= l[:count] %td= l[:min] ? l[:min].in_time_zone.strftime('%Y-%m-%d %H:%M') : '' %td= l[:max] ? l[:max].in_time_zone.strftime('%Y-%m-%d %H:%M') : ''