From bcb3005bfa7684ef66ae85fd3f179f60a4fd57b2 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 1 Sep 2017 10:13:55 +0800 Subject: [PATCH] =?UTF-8?q?tpi=E4=B8=AD=E6=9C=AA=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=B8=8B=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=85=B3?= =?UTF-8?q?=E5=8D=A1=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/games/_games_list.html.erb | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) 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 %>