Description:
pretty up main list
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r587:429826ae8bca - - 2 files changed: 8 inserted, 6 deleted
@@ -1,17 +1,18 | |||
|
1 | 1 | %tr |
|
2 | 2 | %td |
|
3 | 3 | = "#{problem.name}" |
|
4 | 4 | %td |
|
5 | 5 | = "#{problem.full_name}" |
|
6 | + %br | |
|
6 | 7 | = link_to_description_if_any "[#{t 'main.problem_desc'}] <span class='glyphicon glyphicon-file'></span>".html_safe, problem |
|
7 | 8 | %td |
|
8 | 9 | = @prob_submissions[problem.id][:count] |
|
9 | 10 | = link_to "[subs]", main_submission_path(problem.id) |
|
10 | 11 | %td |
|
11 | 12 | = render :partial => 'submission_short', |
|
12 | 13 | :locals => {:submission => @prob_submissions[problem.id][:submission], :problem_name => problem.name } |
|
13 | 14 | %td |
|
14 | 15 | - if @prob_submissions[problem.id][:submission] |
|
15 | 16 | = link_to 'Edit', direct_edit_submission_path(@prob_submissions[problem.id][:submission]), class: 'btn btn-success' |
|
16 | 17 | - else |
|
17 | 18 | = link_to 'New', direct_edit_path(problem.id), class: 'btn btn-success' |
@@ -1,26 +1,27 | |||
|
1 | 1 | |
|
2 | 2 | - if submission.nil? |
|
3 | 3 | = "-" |
|
4 | 4 | - else |
|
5 | 5 | - if submission.graded_at.nil? |
|
6 | - =t 'main.submitted_at' | |
|
6 | + = t 'main.submitted_at' | |
|
7 | 7 | = format_short_time(submission.submitted_at.localtime) |
|
8 | 8 | - else |
|
9 | - = t 'main.graded_at' | |
|
10 |
- = "#{format_short_time(submission.graded_at.localtime)} |
|
|
9 | + %strong= t 'main.graded_at' | |
|
10 | + = "#{format_short_time(submission.graded_at.localtime)} " | |
|
11 | + %br | |
|
11 | 12 | - if GraderConfiguration['ui.show_score'] |
|
12 | - = t 'main.score' | |
|
13 | + %strong= t 'main.score' | |
|
13 | 14 | = "#{(submission.points*100/submission.problem.full_score).to_i} " |
|
14 | 15 | = " [" |
|
15 | 16 | %tt |
|
16 | 17 | = submission.grader_comment |
|
17 | 18 | = "]" |
|
19 | + %br | |
|
20 | + %strong View: | |
|
18 | 21 | - if GraderConfiguration.show_grading_result |
|
19 | - = " | " | |
|
20 | 22 | = link_to '[detailed result]', :action => 'result', :id => submission.id |
|
21 | - = " | " | |
|
22 | 23 | = link_to("[#{t 'main.cmp_msg'}]", {:action => 'compiler_msg', :id => submission.id}, {:popup => true}) |
|
23 | 24 | = " | " |
|
24 | 25 | = link_to("[#{t 'main.src_link'}]",{:action => 'source', :id => submission.id}) |
|
25 | 26 | = " | " |
|
26 | 27 | = link_to "[#{t 'main.submissions_link'}]", :action => 'submission', :id => problem_name |
You need to be logged in to leave comments.
Login now