diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -88,10 +88,10 @@ if @submission.valid? if @submission.save == false - flash[:notice] = 'Error saving your submission' + flash[:notice] = 'Error saving your submission' elsif Task.create(:submission_id => @submission.id, :status => Task::STATUS_INQUEUE) == false - flash[:notice] = 'Error adding your submission to task queue' + flash[:notice] = 'Error adding your submission to task queue' end else prepare_list_information @@ -106,7 +106,7 @@ (submission.problem != nil) and (submission.problem.available)) send_data(submission.source, - {:filename => submission.download_filename, + {:filename => submission.download_filename, :type => 'text/plain'}) else flash[:notice] = 'Error viewing source' diff --git a/app/views/announcements/edit.html.erb b/app/views/announcements/edit.html.erb deleted file mode 100644 --- a/app/views/announcements/edit.html.erb +++ /dev/null @@ -1,47 +0,0 @@ -
- Title
- <%= f.text_field :title %>
-
- Notes (shown internally, used to organize announcements)
- <%= f.text_field :notes %>
-
- Body
- <%= f.text_area :body %>
-
- Author
- <%= f.text_field :author %>
-
- Published
- <%= f.check_box :published %>
-
- Show on front page?
- <%= f.check_box :frontpage %>
-
- Show only in contest?
- <%= f.check_box :contest_only %>
-
- <%= f.submit "Update" %> -
-<% end %> - -<%= link_to 'Show', @announcement %> | -<%= link_to 'Back', announcements_path %> diff --git a/app/views/problems/_form.html.erb b/app/views/problems/_form.html.erb deleted file mode 100644 --- a/app/views/problems/_form.html.erb +++ /dev/null @@ -1,55 +0,0 @@ -<%= error_messages_for 'problem' %> - - -
-<%= text_field 'problem', 'name' %> Do not directly edit the problem name, unless you know what you are doing. If you want to change the name, use the name change button in the problem management menu instead.
-
-<%= text_field 'problem', 'full_name' %>
-<%= text_field 'problem', 'full_score' %>
-<%= date_select 'problem', 'date_added' %>
- -<%= check_box :problem, :available %> - - -<%= check_box :problem, :test_allowed %> - - -<%= check_box :problem, :output_only %> -
- -<%= error_messages_for 'description' %> - -
-<%= text_area :description, :body, :rows => 10, :cols => 80 %>
-<%= select "description", - "markdowned", - [['True',true],['False',false]], - {:selected => (@description) ? @description.markdowned : false } -%>
- -
-<%= text_field 'problem', 'url' %>
Task PDF <%= file_field_tag 'file' %>
- - - diff --git a/app/views/problems/edit.html.erb b/app/views/problems/edit.html.erb deleted file mode 100644 --- a/app/views/problems/edit.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -