Auto refresh unless my turn

This commit is contained in:
Jesse C. Fisher 2019-10-20 21:57:26 -07:00 committed by Jesse C. Fisher
parent bcf28940c4
commit ecda1b8705
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
<%= yield :head %>
</head>
<body>

View File

@ -1,3 +1,6 @@
- unless current_user.soft_token == @game.controlling_player.soft_token
- content_for :head do
%meta{:content => "5", "http-equiv" => "refresh"}/
- if policy(@table).update?
.owner-controls
= link_to 'Edit', edit_table_path(@table)