mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 11:42:07 +00:00
show date, hide puzzle search for non premium
This commit is contained in:
@@ -88,7 +88,8 @@ defmodule ChesstrainerWeb.LandingComponents do
|
||||
turn: turn_label(endgame),
|
||||
title: title(endgame),
|
||||
themes: theme_names(endgame),
|
||||
orientation: orientation(endgame)
|
||||
orientation: orientation(endgame),
|
||||
date: Calendar.strftime(assigns.date || Date.utc_today(), "%d %b %Y")
|
||||
)
|
||||
|
||||
~H"""
|
||||
@@ -101,6 +102,7 @@ defmodule ChesstrainerWeb.LandingComponents do
|
||||
<strong>{@turn}</strong>
|
||||
</span>
|
||||
</div>
|
||||
<div>{@date}</div>
|
||||
</div>
|
||||
|
||||
<.board_grid fen={@fen} orientation={@orientation} />
|
||||
|
||||
Reference in New Issue
Block a user