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