<%= notice %>
<% content_for :title, "Games" %> <% content_for :top_content do %>状態: 履歴モード
<% else %>状態: <%= game.status %>
<% end %> <% if game.turns.present? %>時期: <%= parse_phase(game.turns.sort_by(&:number).last&.phase) %>
<% end %> <% participant = game.participants.find_by(user: current_user) %> <% if participant %>国: <%= participant.power || '未選択' %>
命令: <%= participant.orders_submitted ? '完了' : '未完了' %>
<% end %>参加者: <%= game.participants.count %> / <%= game.participants_count %>
<% if game.password_protected? %>パスワード保護
<% else %>公開ゲーム
<% end %>履歴モード
<% else %><%= game.status %>
<% end %> <% if game.turns.present? %>時期: <%= parse_phase(game.turns.sort_by(&:number).last&.phase) %>
<% end %>参加人数: <%= game.participants.size %> / <%= game.participants_count %>