# HG changeset patch # User jittat # Date 2008-04-16 14:28:55 # Node ID 471574e170b4d491cab189538f26a16958004ecb # Parent 8489512b18dee48c52a6d065d3566df55d02cb3b [web] more styling git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@176 6386c4cd-e34a-4fa8-8920-d93eb39b512e diff --git a/app/views/tasks/_problem.html.haml b/app/views/tasks/_problem.html.haml --- a/app/views/tasks/_problem.html.haml +++ b/app/views/tasks/_problem.html.haml @@ -1,5 +1,7 @@ %a{:name => problem.name} -%h3= "#{problem.full_name} (#{problem.name})" -%pre - %div{:style => "border: 1px solid grey; background: #eeeeee"} +- back_color = ((problem_counter % 2) == 0) ? "#fefedd" : "#feeefe" +%div{:style => "border: 1px solid grey; background: #{back_color}; padding-left: 20px;"} + %div{:style => "border-bottom: 1px solid black; padding: 5px; margin: 5px; font-size: 18px; font-weight: bold"} + = "#{problem.full_name} (#{problem.name})" + %pre = problem.body || "(not available)"