Show More
Commit Description:
update application.rb
Commit Description:
update application.rb
File last commit:
Show/Diff file:
Action:
app/views/report/login_stat.html.haml | 36 lines | 1.3 KiB | text/x-haml | HamlLexer |
(in progress) add date range
r412 - content_for :header do
add table sorter and combine user_stat and user_stat_max action into one view
r430 = stylesheet_link_tag 'tablesorter-theme.cafe'
add jquery to manage problem, now we can select a range of problem
r456 = javascript_include_tag 'local_jquery'
(in progress) add date range
r412
%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"} );
add table sorter and combine user_stat and user_stat_max action into one view
r430 $('#my_table').tablesorter({widthFixed: true, widgets: ['zebra']});
(in progress) add date range
r412 });
add login stat
r410 %h1 Login status
add submission report
r413 =render partial: 'report_menu'
=render partial: 'date_range', locals: {param_text: 'Login date range:', title: 'Query login stat in the range' }
merge max score from branch algo
r411
add table sorter and combine user_stat and user_stat_max action into one view
r430 %table.tablesorter-cafe#my_table
add login stat
r410 %thead
add table sorter and combine user_stat and user_stat_max action into one view
r430 %tr
add login stat
r410 %th login
%th full name
%th login count
%th earliest
%th latest
report ip
r442 %th IP
add login stat
r410 %tbody
- @logins.each do |l|
%tr{class: cycle('info-even','info-odd')}
add user profile page listing all submission, permission is by 'right.user_view_submission'...
r431 %td= link_to l[:login], controller: 'users', action: 'profile', id: l[:id]
add login stat
r410 %td= l[:full_name]
%td= l[:count]
add submission report
r413 %td= l[:min] ? l[:min].in_time_zone.strftime('%Y-%m-%d %H:%M') : ''
report ip
r442 %td= l[:max] ? "#{l[:max].in_time_zone.strftime('%Y-%m-%d %H:%M.%S')} (#{time_ago_in_words(l[:max].in_time_zone)} ago)" : ''
%td
- l[:ip].each do |ip|
#{ip.ip_address} <br/>