diff --git a/app/views/games/_games_list.html.erb b/app/views/games/_games_list.html.erb index 7df50e415..c91dfa644 100644 --- a/app/views/games/_games_list.html.erb +++ b/app/views/games/_games_list.html.erb @@ -8,18 +8,20 @@
<%= 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 %>