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 %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 + "]"
13 %td.info
14 %td.info
14 = render :partial => 'compiler_message', :locals => {:compiler_message => submission.compiler_message }
15 = render :partial => 'compiler_message', :locals => {:compiler_message => submission.compiler_message }
@@ -1,24 +1,24
1 .title
1 .title
2 Hello
2 Hello
3 =h @user.full_name
3 =h @user.full_name
4
4
5 Current time is
5 Current time is
6 = format_short_time(Time.new)
6 = format_short_time(Time.new)
7 %br/
7 %br/
8
8
9 .task-menu
9 .task-menu
10 Tasks:
10 Tasks:
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 Sub #
17 + %th.info #
18 - %th.info Time
18 + %th.info At
19 %th.info Source
19 %th.info Source
20 - %th.info Results
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
@@ -34,50 +34,55
34 border: 1px solid black;
34 border: 1px solid black;
35 font-size: 13px;
35 font-size: 13px;
36 }
36 }
37
37
38 td.uinfo {
38 td.uinfo {
39 vertical-align: top;
39 vertical-align: top;
40 border: 1px solid black;
40 border: 1px solid black;
41 padding: 5px;
41 padding: 5px;
42 }
42 }
43
43
44 th.uinfo {
44 th.uinfo {
45 background: lightgreen;
45 background: lightgreen;
46 vertical-align: top;
46 vertical-align: top;
47 text-align: right;
47 text-align: right;
48 border: 1px solid black;
48 border: 1px solid black;
49 padding: 5px;
49 padding: 5px;
50 }
50 }
51
51
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.info, td.info {
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: #eeeeee;
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;
79 border-top: 1px solid black;
84 border-top: 1px solid black;
80 border-bottom: 1px solid black;
85 border-bottom: 1px solid black;
81 margin-top: 2px;
86 margin-top: 2px;
82 margin-bottom: 4px;
87 margin-bottom: 4px;
83 }
88 }
You need to be logged in to leave comments. Login now