diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index c074be37b..cb517e40b 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -507,7 +507,7 @@ class UsersController < ApplicationController @user.password = @user.password_confirmation = nil respond_to do |format| - format.html { render :action => 'new' } + format.html { render :action => 'new',:layout => "base" } format.api { render_validation_errors(@user) } end end diff --git a/app/models/course.rb b/app/models/course.rb index 75bac905c..04b0535bd 100644 --- a/app/models/course.rb +++ b/app/models/course.rb @@ -35,8 +35,8 @@ class Course < ActiveRecord::Base :delete_permission => :manage_files validates_presence_of :password, :term,:name - validates_format_of :class_period, :with =>/^[1-9]\d*$/ - validates_format_of :name,:with =>/^[a-zA-Z0-9_\u4e00-\u9fa5]+$/ + validates_format_of :class_period, :with =>/^\d*$/ + #validates_format_of :name,:with =>/^[a-zA-Z0-9_\u4e00-\u9fa5]+$/ before_save :self_validate after_create :create_board_sync diff --git a/app/views/account/login.html.erb b/app/views/account/login.html.erb index dc1e47ed7..20b0c5c04 100644 --- a/app/views/account/login.html.erb +++ b/app/views/account/login.html.erb @@ -1,3 +1,8 @@ +<% @nav_dispaly_home_path_label = 1 + @nav_dispaly_main_course_label = 1 + @nav_dispaly_main_project_label = 1 + @nav_dispaly_main_contest_label = 1 %> +<% @nav_dispaly_forum_label = 1%> <%= call_hook :view_account_login_top %>