diff --git a/app/views/problems/_form.rhtml b/app/views/problems/_form.rhtml --- a/app/views/problems/_form.rhtml +++ b/app/views/problems/_form.rhtml @@ -14,7 +14,7 @@ <%= date_select 'problem', 'date_added' %>


-<%= text_area 'problem', 'body', :rows => 10 %>

+<%= text_area 'problem', 'body', :rows => 10, :cols => 80 %>


<%= text_field 'problem', 'url' %>

diff --git a/app/views/tasks/_problem.html.erb b/app/views/tasks/_problem.html.erb new file mode 100644 --- /dev/null +++ b/app/views/tasks/_problem.html.erb @@ -0,0 +1,12 @@ + +<% back_color = ((problem_counter % 2) == 0) ? "#fefedd" : "#feeefe" %> +
+
+ <%= "#{problem.full_name} (#{problem.name})" %> +
+ <% if problem.body!=nil %> +<%= markdown(problem.body) %> + <% else %> + (not available) + <% end %> +
diff --git a/app/views/tasks/_problem.html.haml b/app/views/tasks/_problem.html.haml deleted file mode 100644 --- a/app/views/tasks/_problem.html.haml +++ /dev/null @@ -1,7 +0,0 @@ -%a{:name => problem.name} -- 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)"