diff --git a/app/views/problems/stat.html.haml b/app/views/problems/stat.html.haml --- a/app/views/problems/stat.html.haml +++ b/app/views/problems/stat.html.haml @@ -6,19 +6,23 @@ %h1 Problem stat: #{@problem.name} %h2 Overview +.row + .col-md-2 + %strong Name: + .col-md-10 + = @problem.full_name #in_place_editor_field :problem, :full_name, {}, :rows=>1 + = link_to_description_if_any "[#{t 'main.problem_desc'}] ".html_safe, @problem +.row + .col-md-2.strong + %strong Submissions: + .col-md-10 + = @submissions.count +.row + .col-md-2.strong + %strong Solved/Attemped User + .col-md-10 + #{@summary[:solve]}/#{@summary[:attempt]} (#{(@summary[:solve]*100.0/@summary[:attempt]).round(1)}%) -%table.info - %thead - %tr.info-head - %th Stat - %th Value - %tbody - %tr{class: cycle('info-even','info-odd')} - %td Submissions - %td= @submissions.count - %tr{class: cycle('info-even','info-odd')} - %td Solved/Attempted User - %td #{@summary[:solve]}/#{@summary[:attempt]} (#{(@summary[:solve]*100.0/@summary[:attempt]).round(1)}%) %h2 Submissions Count = render partial: 'application/bar_graph', locals: { histogram: @histogram }