diff --git a/app/views/tasks/_problem.html.erb b/app/views/tasks/_problem.html.erb --- a/app/views/tasks/_problem.html.erb +++ b/app/views/tasks/_problem.html.erb @@ -1,12 +1,22 @@ - -<% back_color = ((problem_counter % 2) == 0) ? "#fefedd" : "#feeefe" %> -
-
+ + + <%= "#{problem.full_name} (#{problem.name})" %> -
- <% if problem.body!=nil %> -<%= markdown(problem.body) %> + + + + <% td_class = (problem_counter%2==0) ? "desc-even" : "desc-odd" %> + + <% if problem.description!=nil %> + <% if problem.description.markdowned %> +<%= markdown(problem.description.body) %> + <% else %> +
+<%= problem.description.body %>
+
+ <% end %> <% else %> (not available) <% end %> -
+ +