diff --git a/app/models/myshixun.rb b/app/models/myshixun.rb
index b5e9df62..74841156 100644
--- a/app/models/myshixun.rb
+++ b/app/models/myshixun.rb
@@ -129,7 +129,8 @@ class Myshixun < ActiveRecord::Base
if current_game.blank?
current_game = Game.find_by_sql("SELECT g.* FROM games g, challenges c where g.myshixun_id=#{self.id} and g.challenge_id = c.id and g.status = 2 order by c.position desc").first
end
- return current_game
+
+ return current_game.blank? ? games.first : current_game
#
# if self.status == 1
# current_game = Game.find_by_sql("SELECT g.* FROM games g, challenges c where g.myshixun_id=#{self.id} and g.challenge_id = c.id and g.status = 2 order by c.position desc").first
diff --git a/app/views/applied_project/_applied_join_project.html.erb b/app/views/applied_project/_applied_join_project.html.erb
index f8401b1e..60340a94 100644
--- a/app/views/applied_project/_applied_join_project.html.erb
+++ b/app/views/applied_project/_applied_join_project.html.erb
@@ -9,12 +9,12 @@
<% if @is_teacher && @is_teacher == 1 %>
-
+
<% else %>
-
+
<% end %>
diff --git a/app/views/layouts/_logined_header.html.erb b/app/views/layouts/_logined_header.html.erb
index 0ce03673..2d6a8f4f 100644
--- a/app/views/layouts/_logined_header.html.erb
+++ b/app/views/layouts/_logined_header.html.erb
@@ -53,71 +53,71 @@
-