Description:
fix link back to problems in problems path
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r589:9e1cc9dd0e9a - - 2 files changed: 2 inserted, 2 deleted

@@ -1,18 +1,18
1 - content_for :head do
1 - content_for :head do
2 = stylesheet_link_tag 'problems'
2 = stylesheet_link_tag 'problems'
3
3
4 %h1 Import problems: successful
4 %h1 Import problems: successful
5
5
6 %p
6 %p
7 %b Problem:
7 %b Problem:
8 = "#{@problem.full_name} (#{@problem.name})"
8 = "#{@problem.full_name} (#{@problem.name})"
9 %br/
9 %br/
10 = "Note that the full score has been set to #{@problem.full_score}."
10 = "Note that the full score has been set to #{@problem.full_score}."
11
11
12 %p
12 %p
13 - = link_to '[Back to problem list]', :action => 'list'
13 + = link_to '[Back to problem list]', problems_path
14 = link_to '[Import other problems]', :action => 'import'
14 = link_to '[Import other problems]', :action => 'import'
15
15
16 %h3 Import log
16 %h3 Import log
17 %pre.import-log
17 %pre.import-log
18 = @log
18 = @log
@@ -1,71 +1,71
1 - content_for :head do
1 - content_for :head do
2 = stylesheet_link_tag 'problems'
2 = stylesheet_link_tag 'problems'
3
3
4 %h1 Import problems
4 %h1 Import problems
5
5
6 - %p= link_to '[Back to problem list]', :action => 'list'
6 + %p= link_to '[Back to problem list]', problems_path
7
7
8 - if @problem and @problem.errors
8 - if @problem and @problem.errors
9 =error_messages_for 'problem'
9 =error_messages_for 'problem'
10
10
11 = form_tag({:action => 'do_import'}, :multipart => true) do
11 = form_tag({:action => 'do_import'}, :multipart => true) do
12 .submitbox
12 .submitbox
13 %table
13 %table
14 %tr
14 %tr
15 %td Name:
15 %td Name:
16 %td= text_field_tag 'name'
16 %td= text_field_tag 'name'
17 %tr
17 %tr
18 %td Full name:
18 %td Full name:
19 %td
19 %td
20 = text_field_tag 'full_name'
20 = text_field_tag 'full_name'
21 %span{:class => 'help'} Leave blank to use the same value as the name above.
21 %span{:class => 'help'} Leave blank to use the same value as the name above.
22 %tr
22 %tr
23 %td Testdata file:
23 %td Testdata file:
24 %td= file_field_tag 'file'
24 %td= file_field_tag 'file'
25 %tr
25 %tr
26 %td
26 %td
27 %td
27 %td
28 %span{:class => 'help'}
28 %span{:class => 'help'}
29 In .zip, .tgz, tar.gz, .tar format.
29 In .zip, .tgz, tar.gz, .tar format.
30 It should includes inputs (e.g., 1.in, 2a.in, 2b.in)
30 It should includes inputs (e.g., 1.in, 2a.in, 2b.in)
31 and solutions (e.g., 1.sol, 2a.sol, 2b.sol).
31 and solutions (e.g., 1.sol, 2a.sol, 2b.sol).
32 %br/
32 %br/
33 You may put task description in *.html for raw html
33 You may put task description in *.html for raw html
34 and *.md or *.markdown for markdown.
34 and *.md or *.markdown for markdown.
35 %br/
35 %br/
36 You may also put a pdf file for the task description
36 You may also put a pdf file for the task description
37 %tr
37 %tr
38 %td Checker:
38 %td Checker:
39 %td= select_tag 'checker', options_for_select([['Text checker','text'],['Float checker','float']], 'text')
39 %td= select_tag 'checker', options_for_select([['Text checker','text'],['Float checker','float']], 'text')
40 %tr
40 %tr
41 %td
41 %td
42 %td
42 %td
43 %span{:class => 'help'}
43 %span{:class => 'help'}
44 "Text" checker checks if the text (including numbers) is the same, ignoring any whitespace
44 "Text" checker checks if the text (including numbers) is the same, ignoring any whitespace
45 %br/
45 %br/
46 "Float" checker checks if all numbers is within EPSILON error using formula |a-b| < EPSILON * max(|a|,|b|)
46 "Float" checker checks if all numbers is within EPSILON error using formula |a-b| < EPSILON * max(|a|,|b|)
47
47
48 - if @allow_test_pair_import
48 - if @allow_test_pair_import
49 %tr
49 %tr
50 %td
50 %td
51 %td
51 %td
52 = check_box_tag 'import_to_db'
52 = check_box_tag 'import_to_db'
53 Import test data to database (for a test-pair task)
53 Import test data to database (for a test-pair task)
54 %tr
54 %tr
55 %td Time limit:
55 %td Time limit:
56 %td
56 %td
57 = text_field_tag 'time_limit'
57 = text_field_tag 'time_limit'
58 %span{:class => 'help'} In seconds. Leave blank to use 1 sec.
58 %span{:class => 'help'} In seconds. Leave blank to use 1 sec.
59 %tr
59 %tr
60 %td Memory limit:
60 %td Memory limit:
61 %td
61 %td
62 = text_field_tag 'memory_limit'
62 = text_field_tag 'memory_limit'
63 %span{:class => 'help'} In MB. Leave blank to use 32MB.
63 %span{:class => 'help'} In MB. Leave blank to use 32MB.
64 %tr
64 %tr
65 %td
65 %td
66 %td= submit_tag 'Import problem'
66 %td= submit_tag 'Import problem'
67
67
68 - if @log
68 - if @log
69 %h3 Import log
69 %h3 Import log
70 %pre.import-log
70 %pre.import-log
71 = @log
71 = @log
You need to be logged in to leave comments. Login now