错误提示页面导航栏丢失问题、新建问题跟踪red_project_scores问题
This commit is contained in:
parent
20f183799f
commit
7b14be7310
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
class TrackersController < ApplicationController
|
class TrackersController < ApplicationController
|
||||||
layout 'admin'
|
layout 'admin'
|
||||||
|
helper "project_score"
|
||||||
before_filter :require_admin, :except => :index
|
before_filter :require_admin, :except => :index
|
||||||
before_filter :require_admin_or_api_request, :only => :index
|
before_filter :require_admin_or_api_request, :only => :index
|
||||||
accept_api_auth :index
|
accept_api_auth :index
|
||||||
|
@ -38,6 +38,7 @@ class TrackersController < ApplicationController
|
||||||
@tracker ||= Tracker.new(params[:tracker])
|
@tracker ||= Tracker.new(params[:tracker])
|
||||||
@trackers = Tracker.sorted.all
|
@trackers = Tracker.sorted.all
|
||||||
@projects = Project.all
|
@projects = Project.all
|
||||||
|
@courses = Course.all
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
|
|
@ -54,7 +54,7 @@ class ZipdownController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
rescue => e
|
rescue => e
|
||||||
render file: 'public/file_not_found.html'
|
render file: 'public/file_not_found.html' , :layout => 'course_base'
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
17
db/schema.rb
17
db/schema.rb
|
@ -441,10 +441,10 @@ ActiveRecord::Schema.define(:version => 20140814062455) do
|
||||||
t.datetime "created_at", :null => false
|
t.datetime "created_at", :null => false
|
||||||
t.datetime "updated_at", :null => false
|
t.datetime "updated_at", :null => false
|
||||||
t.integer "sort_type"
|
t.integer "sort_type"
|
||||||
t.integer "show_course", :default => 1
|
|
||||||
t.integer "show_contest", :default => 1
|
|
||||||
t.integer "image_width", :default => 107
|
t.integer "image_width", :default => 107
|
||||||
t.integer "image_height", :default => 63
|
t.integer "image_height", :default => 63
|
||||||
|
t.integer "show_course", :default => 1
|
||||||
|
t.integer "show_contest", :default => 1
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "forums", :force => true do |t|
|
create_table "forums", :force => true do |t|
|
||||||
|
@ -907,19 +907,6 @@ ActiveRecord::Schema.define(:version => 20140814062455) do
|
||||||
|
|
||||||
add_index "repositories", ["project_id"], :name => "index_repositories_on_project_id"
|
add_index "repositories", ["project_id"], :name => "index_repositories_on_project_id"
|
||||||
|
|
||||||
create_table "rich_rich_files", :force => true do |t|
|
|
||||||
t.datetime "created_at", :null => false
|
|
||||||
t.datetime "updated_at", :null => false
|
|
||||||
t.string "rich_file_file_name"
|
|
||||||
t.string "rich_file_content_type"
|
|
||||||
t.integer "rich_file_file_size"
|
|
||||||
t.datetime "rich_file_updated_at"
|
|
||||||
t.string "owner_type"
|
|
||||||
t.integer "owner_id"
|
|
||||||
t.text "uri_cache"
|
|
||||||
t.string "simplified_type", :default => "file"
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "roles", :force => true do |t|
|
create_table "roles", :force => true do |t|
|
||||||
t.string "name", :limit => 30, :default => "", :null => false
|
t.string "name", :limit => 30, :default => "", :null => false
|
||||||
t.integer "position", :default => 1
|
t.integer "position", :default => 1
|
||||||
|
|
Loading…
Reference in New Issue