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:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r52:1da8d90e2f3e - - 3 files changed: 12 inserted, 6 deleted

@@ -1,14 +1,15
1 1
2 2 %tr{:class => ((submission_counter%2==0) ? "info-even" : "info-odd")}
3 3 %td.info{:align => "center"}
4 4 = submission_counter+1
5 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 8 %td.info
8 9 - if submission.graded_at!=nil
9 10 = "Graded at #{format_short_time(submission.graded_at)}."
10 11 %br/
11 12 = "Score: #{submission.points} "
12 13 = " [" + submission.grader_comment + "]"
13 14 %td.info
14 15 = render :partial => 'compiler_message', :locals => {:compiler_message => submission.compiler_message }
@@ -5,20 +5,20
5 5 Current time is
6 6 = format_short_time(Time.new)
7 7 %br/
8 8
9 9 .task-menu
10 10 Tasks:
11 11 - @problems.each do |problem|
12 12 = link_to problem.name, :action => 'submission', :id => problem.name
13 13
14 14 - if @submissions!=nil
15 15 %table.info
16 16 %tr.info-head
17 - %th.info Sub #
18 - %th.info Time
17 + %th.info #
18 + %th.info At
19 19 %th.info Source
20 - %th.info Results
20 + %th.info Result
21 21 %th.info{:width => "300px"}
22 22 Compiler message
23 23 = render :partial => 'submission', :collection => @submissions
24 24
@@ -46,38 +46,43
46 46 vertical-align: top;
47 47 text-align: right;
48 48 border: 1px solid black;
49 49 padding: 5px;
50 50 }
51 51
52 52 table.info {
53 53 border: 1px solid black;
54 54 border-collapse: collapse;
55 55 font-size: 12px;
56 56 }
57 57
58 - th.info, td.info {
58 + th.info {
59 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 67 tr.info-head {
63 68 background: #777777;
64 69 color: white;
65 70 }
66 71
67 72 tr.info-odd {
68 73 background: #dddddd;
69 74 }
70 75
71 76 tr.info-even {
72 - background: #eeeeee;
77 + background: #f0f0f0;
73 78 }
74 79
75 80 div.task-menu {
76 81 text-align: center;
77 82 font-size: 13px;
78 83 font-weight: bold;
79 84 border-top: 1px solid black;
80 85 border-bottom: 1px solid black;
81 86 margin-top: 2px;
82 87 margin-bottom: 4px;
83 88 }
You need to be logged in to leave comments. Login now