diff --git a/app/views/contests/show_attendingcontest.html.erb b/app/views/contests/show_attendingcontest.html.erb
index d68402e18..426aa1721 100644
--- a/app/views/contests/show_attendingcontest.html.erb
+++ b/app/views/contests/show_attendingcontest.html.erb
@@ -66,21 +66,27 @@
2) 若您希望托管竞赛数据和代码以及保留开发和提交代码的轨迹,请从“托管项目”中选择一项您已创建好的项目作为该参赛作品的托管项目,若您还没有创建项目,请点击右边的“创建项目”,然后回到本页再选择。
+
<% if User.current.logged? %>
-
-
-
-
参加竞赛:
-
<%= link_to '新建参赛作品', "javascript:void(0);", onclick: "$('#put-project-form').toggle();" %>
+
+
+ 参加竞赛:
+ <%= link_to '新建参赛作品', "javascript:void(0);", onclick: "$('#put-project-form').toggle();" %>
+
+
+
-
-
-
+<% else %>
+
+ <%= l(:label_user_login_attending_contest) %>
+ <%= link_to l(:label_user_login_new), signin_path %>
+
+<% end %>
@@ -162,7 +168,7 @@
-<% end %>
+
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index 65e11310d..e576e106c 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -554,6 +554,7 @@ zh:
label_user_login_tips: 您还没有登录,请登录后留言
label_user_login_course_board: 您还没有登录,请登录后参与课程讨论
label_user_login_project_board: 您还没有登录,请登录后参与项目讨论
+ label_user_login_attending_contest: 您还没有登录,请登录后参赛
#end
#by huang # modified by bai
label_college: 高校进入
diff --git a/db/schema.rb b/db/schema.rb
index dec87fda2..e0c88c3f2 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -23,6 +23,11 @@ ActiveRecord::Schema.define(:version => 20140519074133) do
add_index "activities", ["user_id", "act_type"], :name => "index_activities_on_user_id_and_act_type"
add_index "activities", ["user_id"], :name => "index_activities_on_user_id"
+ create_table "andoidcontests", :force => true do |t|
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ end
+
create_table "apply_project_masters", :force => true do |t|
t.integer "user_id"
t.string "apply_type"
@@ -864,13 +869,6 @@ ActiveRecord::Schema.define(:version => 20140519074133) do
add_index "user_grades", ["project_id"], :name => "index_user_grades_on_project_id"
add_index "user_grades", ["user_id"], :name => "index_user_grades_on_user_id"
- create_table "user_levels", :force => true do |t|
- t.integer "user_id"
- t.integer "level"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
- end
-
create_table "user_preferences", :force => true do |t|
t.integer "user_id", :default => 0, :null => false
t.text "others"
@@ -880,6 +878,19 @@ ActiveRecord::Schema.define(:version => 20140519074133) do
add_index "user_preferences", ["user_id"], :name => "index_user_preferences_on_user_id"
+ create_table "user_scores", :force => true do |t|
+ t.integer "user_id", :null => false
+ t.integer "collaboration"
+ t.integer "influence"
+ t.integer "skill"
+ t.integer "active"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ t.integer "level"
+ t.integer "file"
+ t.integer "issue"
+ end
+
create_table "user_statuses", :force => true do |t|
t.integer "changesets_count"
t.integer "watchers_count"