feat: add TowerOps suffix to all page titles
Add '| TowerOps' suffix to page titles so users can easily identify TowerOps tabs when multiple browser tabs are open. Examples: - Dashboard → 'Dashboard | TowerOps' - Equipment Details → 'Router-1 | TowerOps' - No page_title → 'TowerOps' Uses Phoenix LiveView's suffix parameter on live_title component.
This commit is contained in:
parent
8f31219d85
commit
d3d5d1e706
2 changed files with 9 additions and 2 deletions
|
|
@ -1,4 +1,11 @@
|
|||
2026-03-05
|
||||
feat: add TowerOps suffix to all page titles for better tab identification
|
||||
- Page titles now show "Page Title | TowerOps" format
|
||||
- Helps users identify TowerOps tabs when multiple tabs are open
|
||||
- Uses live_title suffix parameter for automatic appending
|
||||
- Falls back to just "TowerOps" when no page_title is set
|
||||
Files: lib/towerops_web/components/layouts/root.html.heex
|
||||
|
||||
fix: add --skip-if-loaded flag to test alias to prevent prompts
|
||||
- Test alias now uses 'ecto.load --skip-if-loaded' to avoid prompts
|
||||
- Prevents "structure already loaded" confirmation when running mix test
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@
|
|||
<link id="favicon" rel="icon" type="image/png" href={~p"/images/towerops_logo.png"} />
|
||||
<link rel="apple-touch-icon" href={~p"/images/towerops_logo.png"} />
|
||||
|
||||
<.live_title default="TowerOps">
|
||||
{assigns[:page_title]}
|
||||
<.live_title suffix=" | TowerOps">
|
||||
{assigns[:page_title] || "TowerOps"}
|
||||
</.live_title>
|
||||
<link phx-track-static rel="stylesheet" href={~p"/assets/css/app.css"} />
|
||||
<script defer phx-track-static type="text/javascript" src={~p"/assets/js/app.js"}>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue