Show More
Commit Description:
add golden submit button...
Commit Description:
add golden submit button
- When the user submit more than or equal to 100 times the submit button will turn gold
- Add golden-btn tag in applications.css.scss
References:
File last commit:
Show/Diff file:
Action:
app/views/heartbeat/index.html.haml
| 32 lines
| 1007 B
| text/x-haml
| HamlLexer
|
r534 | - content_for :header do | |||
= javascript_include_tag 'local_jquery' | ||||
= stylesheet_link_tag 'tablesorter-theme.cafe' | ||||
%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"} ); | ||||
$('#my_table').tablesorter({widgets: ['zebra']}); | ||||
}); | ||||
%h1 Heart Beat Count | ||||
= "Last 5 minutes distinct user count = #{@num}" | ||||
r538 | %h1 Heart Beat from preview 2 hours | |||
r534 | ||||
%table.tablesorter-cafe#my_table | ||||
%thead | ||||
%tr | ||||
%th Login | ||||
%th Full name | ||||
%th IP | ||||
r538 | %th Status | |||
%th Update | ||||
r534 | %tbody | |||
- @hb.each do |hb| | ||||
%tr{class: cycle('info-even','info-odd')} | ||||
%td= link_to hb.user.login, controller: :users, :action => 'profile', :id => hb.user.id | ||||
%td= hb.user.full_name | ||||
%td= hb.ip_address | ||||
r538 | %td= hb.status | |||
r534 | %td= "#{time_ago_in_words(hb.updated_at)} ago" | |||