# HG changeset patch # User jittat # Date 2008-03-13 05:53:22 # Node ID a609530ad21fb2be66ba3c11ef9dab2ab515094c # Parent 1da8d90e2f3ed8bf2a6982ee09dd0bea4144dc8c more interface adjusting git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@116 6386c4cd-e34a-4fa8-8920-d93eb39b512e diff --git a/app/views/main/submission.html.haml b/app/views/main/submission.html.haml --- a/app/views/main/submission.html.haml +++ b/app/views/main/submission.html.haml @@ -7,18 +7,24 @@ %br/ .task-menu - Tasks: + Task List + %br/ - @problems.each do |problem| = link_to problem.name, :action => 'submission', :id => problem.name +- if @problem!=nil + %h2= "Task: #{@problem.full_name} (#{@problem.name})" + - if @submissions!=nil - %table.info - %tr.info-head - %th.info # - %th.info At - %th.info Source - %th.info Result - %th.info{:width => "300px"} - Compiler message - = render :partial => 'submission', :collection => @submissions - + - if @submissions.length>0 + %table.info + %tr.info-head + %th.info # + %th.info At + %th.info Source + %th.info Result + %th.info{:width => "300px"} + Compiler message + = render :partial => 'submission', :collection => @submissions + - else + No submission