Description:
update views -- styling (even more)
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@115 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r52:1da8d90e2f3e - - 3 files changed: 12 inserted, 6 deleted
@@ -1,12 +1,13 | |||||
|
1 |
|
1 | ||
|
2 | %tr{:class => ((submission_counter%2==0) ? "info-even" : "info-odd")} |
|
2 | %tr{:class => ((submission_counter%2==0) ? "info-even" : "info-odd")} |
|
3 | %td.info{:align => "center"} |
|
3 | %td.info{:align => "center"} |
|
4 | = submission_counter+1 |
|
4 | = submission_counter+1 |
|
5 | %td.info= format_short_time(submission.submitted_at) |
|
5 | %td.info= format_short_time(submission.submitted_at) |
|
6 | - %td.info= link_to('[source]',{:action => 'get_source', :id => submission.id}) |
|
6 | + %td.info{:align => "center"} |
|
|
7 | + = link_to('[load]',{:action => 'get_source', :id => submission.id}) | ||
|
7 | %td.info |
|
8 | %td.info |
|
8 | - if submission.graded_at!=nil |
|
9 | - if submission.graded_at!=nil |
|
9 | = "Graded at #{format_short_time(submission.graded_at)}." |
|
10 | = "Graded at #{format_short_time(submission.graded_at)}." |
|
10 | %br/ |
|
11 | %br/ |
|
11 | = "Score: #{submission.points} " |
|
12 | = "Score: #{submission.points} " |
|
12 | = " [" + submission.grader_comment + "]" |
|
13 | = " [" + submission.grader_comment + "]" |
@@ -11,14 +11,14 | |||||
|
11 | - @problems.each do |problem| |
|
11 | - @problems.each do |problem| |
|
12 | = link_to problem.name, :action => 'submission', :id => problem.name |
|
12 | = link_to problem.name, :action => 'submission', :id => problem.name |
|
13 |
|
13 | ||
|
14 | - if @submissions!=nil |
|
14 | - if @submissions!=nil |
|
15 | %table.info |
|
15 | %table.info |
|
16 | %tr.info-head |
|
16 | %tr.info-head |
|
17 |
- %th.info |
|
17 | + %th.info # |
|
18 |
- %th.info |
|
18 | + %th.info At |
|
19 | %th.info Source |
|
19 | %th.info Source |
|
20 |
- %th.info Result |
|
20 | + %th.info Result |
|
21 | %th.info{:width => "300px"} |
|
21 | %th.info{:width => "300px"} |
|
22 | Compiler message |
|
22 | Compiler message |
|
23 | = render :partial => 'submission', :collection => @submissions |
|
23 | = render :partial => 'submission', :collection => @submissions |
|
24 |
|
24 |
@@ -52,27 +52,32 | |||||
|
52 | table.info { |
|
52 | table.info { |
|
53 | border: 1px solid black; |
|
53 | border: 1px solid black; |
|
54 | border-collapse: collapse; |
|
54 | border-collapse: collapse; |
|
55 | font-size: 12px; |
|
55 | font-size: 12px; |
|
56 | } |
|
56 | } |
|
57 |
|
57 | ||
|
58 |
- th |
|
58 | + th.info { |
|
59 | border: 1px solid black; |
|
59 | border: 1px solid black; |
|
60 | } |
|
60 | } |
|
61 |
|
61 | ||
|
|
62 | + td.info { | ||
|
|
63 | + border-left: 1px solid black; | ||
|
|
64 | + border-right: 1px solid black; | ||
|
|
65 | + } | ||
|
|
66 | + | ||
|
62 | tr.info-head { |
|
67 | tr.info-head { |
|
63 | background: #777777; |
|
68 | background: #777777; |
|
64 | color: white; |
|
69 | color: white; |
|
65 | } |
|
70 | } |
|
66 |
|
71 | ||
|
67 | tr.info-odd { |
|
72 | tr.info-odd { |
|
68 | background: #dddddd; |
|
73 | background: #dddddd; |
|
69 | } |
|
74 | } |
|
70 |
|
75 | ||
|
71 | tr.info-even { |
|
76 | tr.info-even { |
|
72 |
- background: # |
|
77 | + background: #f0f0f0; |
|
73 | } |
|
78 | } |
|
74 |
|
79 | ||
|
75 | div.task-menu { |
|
80 | div.task-menu { |
|
76 | text-align: center; |
|
81 | text-align: center; |
|
77 | font-size: 13px; |
|
82 | font-size: 13px; |
|
78 | font-weight: bold; |
|
83 | font-weight: bold; |
You need to be logged in to leave comments.
Login now