diff options
author | David Gay <david@davidgay.org> | 2021-06-03 20:50:58 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-03 20:51:17 -0400 |
commit | 7f129f24e351cafafdb4bc58a44ca0d714e30af6 (patch) | |
tree | e74f989bbeb8c1ea84a43262f97719d80d4010e6 /app/views/layouts | |
parent | db41c035bfdd0e97662b80d02fbae4a99ed547c2 (diff) |
Move timer and results to new game containers which are always visible
Diffstat (limited to 'app/views/layouts')
-rw-r--r-- | app/views/layouts/application.html.erb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 485aa21..fc627a2 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -21,9 +21,10 @@ <%= render "navbar" %> <% end %> <div class="flex flex-col col-span-12 sm:col-span-8"> - <div class="game-container-box mb-2" style="height: 10rem;"> - Results go here. - </div> + <% if user_signed_in? %> + <div class="game-container-box mb-2 overflow-auto text-sm" style="height: 10rem;" id="result_output"> + </div> + <% end %> <div class="game-container-box" style="height: 25rem;"> <%= render "flash_messages" %> <%= yield %> @@ -32,7 +33,9 @@ <% if user_signed_in? %> <div class="flex flex-col col-span-12 sm:col-span-4"> <div class="game-container-box mb-2" style="height: 15rem;"> - Timer goes here. + <div id="result_controls"> + <%= render "timer" %> + </div> </div> <div id="chat" class="game-container-box col-span-12 sm:col-span-4" style="height: 20rem;" data-turbolinks-permanent> |