mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 11:42:07 +00:00
back home button on daily puzzle
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
defmodule ChesstrainerWeb.EndgameLive.Play do
|
||||
use ChesstrainerWeb, :live_view
|
||||
|
||||
alias Chesstrainer.Accounts.Scope
|
||||
alias Chesstrainer.Endgames
|
||||
alias ChesstrainerWeb.EndgameLive.PlayCore
|
||||
alias ChesstrainerWeb.PlayComponents
|
||||
@@ -32,9 +33,12 @@ defmodule ChesstrainerWeb.EndgameLive.Play do
|
||||
</p>
|
||||
</:subtitle>
|
||||
<:actions>
|
||||
<.button navigate={~p"/endgames"}>
|
||||
<.button :if={Scope.premium?(@current_scope)} navigate={~p"/endgames"}>
|
||||
<.icon name="hero-arrow-left" /> Back to endgames
|
||||
</.button>
|
||||
<.button :if={!Scope.premium?(@current_scope)} navigate={~p"/"}>
|
||||
<.icon name="hero-arrow-left" /> Back home
|
||||
</.button>
|
||||
</:actions>
|
||||
</.header>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user