<%= challenge.try(:position) %>
- <% if game.try(:status) == 0 %>
-
<%= link_to challenge.try(:subject), myshixun_game_path(game, :myshixun_id => @myshixun), :remote => true %>
-
- <% elsif game.try(:status) == 1 %>
-
<%= challenge.try(:subject) %>
-
正在解决
- <% elsif game.try(:status) == 2 %>
-
<%= link_to challenge.try(:subject), myshixun_game_path(game, :myshixun_id => @myshixun), :remote => true %>
-
- <% elsif game.try(:status) == 3 %>
-
<%= challenge.try(:subject) %>
-
+ <% if @myshixun.shixun.try(:status) == 2 %>
+ <% if game.try(:status) == 0 %>
+
<%= link_to challenge.try(:subject), myshixun_game_path(game, :myshixun_id => @myshixun), :remote => true %>
+
+ <% elsif game.try(:status) == 1 %>
+
<%= challenge.try(:subject) %>
+
正在解决
+ <% elsif game.try(:status) == 2 %>
+
<%= link_to challenge.try(:subject), myshixun_game_path(game, :myshixun_id => @myshixun), :remote => true %>
+
+ <% elsif game.try(:status) == 3 %>
+
<%= challenge.try(:subject) %>
+
+ <% end %>
<% end %>