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/report/problem_hof.html.haml | 29 lines | 892 B | text/x-haml | HamlLexer |
/- if params[:id]
/ %h1 Tasks Hall of Fame
/ = link_to('[back to All-Time Hall of Fame]', action: 'problem_hof', id: nil )
/- else
/ %h1 All-Time Hall of Fame
.panel.panel-info
.panel-heading
Select Task
.panel-body
.form-inline
= select 'report',
'problem_id',
@problems.collect {|p| ["[#{p.name}] #{p.full_name}", problem_hof_report_path(p)]},
{:selected => problem_hof_report_path(@problem)},
{ class: 'select2 form-control' }
%button.btn.btn-primary.btn-sm.go-button#problem_go{data: {source: "#report_problem_id"}} Go
- unless params[:id]
/=render partial: 'all_time_hof'
Please select a problem.
- else
%h1 [#{Problem.find(params[:id]).name}] #{Problem.find(params[:id]).full_name}
%h2 Submission History
=render partial: 'application/bar_graph', locals: { histogram: @histogram }
=render partial: 'task_hof'