Description:
more interface adjusting
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@116 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
r53:a609530ad21f - - 1 file changed: 17 inserted, 11 deleted
@@ -4,21 +4,27 | |||||
|
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 |
- Task |
|
10 | + Task List |
|
|
11 | + %br/ | ||
|
11 | - @problems.each do |problem| |
|
12 | - @problems.each do |problem| |
|
12 | = link_to problem.name, :action => 'submission', :id => problem.name |
|
13 | = link_to problem.name, :action => 'submission', :id => problem.name |
|
13 |
|
14 | ||
|
|
15 | + - if @problem!=nil | ||
|
|
16 | + %h2= "Task: #{@problem.full_name} (#{@problem.name})" | ||
|
|
17 | + | ||
|
14 | - if @submissions!=nil |
|
18 | - if @submissions!=nil |
|
15 | - %table.info |
|
19 | + - if @submissions.length>0 |
|
16 |
- %t |
|
20 | + %table.info |
|
17 |
- %t |
|
21 | + %tr.info-head |
|
18 |
- %th.info |
|
22 | + %th.info # |
|
19 |
- %th.info |
|
23 | + %th.info At |
|
20 |
- %th.info |
|
24 | + %th.info Source |
|
21 | - %th.info{:width => "300px"} |
|
25 | + %th.info Result |
|
22 | - Compiler message |
|
26 | + %th.info{:width => "300px"} |
|
23 | - = render :partial => 'submission', :collection => @submissions |
|
27 | + Compiler message |
|
24 | - |
|
28 | + = render :partial => 'submission', :collection => @submissions |
|
|
29 | + - else | ||
|
|
30 | + No submission |
You need to be logged in to leave comments.
Login now