icons, dates

This commit is contained in:
Inhji 2023-04-08 09:54:57 +02:00
parent b29de407bb
commit 143dc9b747
5 changed files with 10 additions and 11 deletions

View file

@ -1,5 +1,6 @@
<.header> <.header>
Listing Channels <.icon name="hero-speaker-wave" /> Channels
<:subtitle>Channels are collections for your notes.</:subtitle>
<:actions> <:actions>
<.link href={~p"/admin/channels/new"}> <.link href={~p"/admin/channels/new"}>
<.button>New Channel</.button> <.button>New Channel</.button>

View file

@ -1,5 +1,5 @@
<.header> <.header>
Listing Identities <.icon name="hero-user" /> Identities
<:actions> <:actions>
<.link href={~p"/admin/identities/new"}> <.link href={~p"/admin/identities/new"}>
<.button>New Identity</.button> <.button>New Identity</.button>

View file

@ -1,5 +1,6 @@
<.header> <.header>
Listing Notes <.icon name="hero-document-text" /> Notes
<:subtitle>Notes are the content, the heart of your site.</:subtitle>
<:actions> <:actions>
<.link href={~p"/admin/notes/new"}> <.link href={~p"/admin/notes/new"}>
<.button>New Note</.button> <.button>New Note</.button>

View file

@ -1,5 +1,5 @@
<.header> <.header>
Settings <.icon name="hero-wrench-screwdriver" /> Settings
<:subtitle>These are your site's settings.</:subtitle> <:subtitle>These are your site's settings.</:subtitle>
<:actions> <:actions>
<%= if @setting == nil do %> <%= if @setting == nil do %>

View file

@ -11,8 +11,8 @@ defmodule ChiyaWeb.NoteShowLive do
~H""" ~H"""
<.header> <.header>
Note <%= @note.id %> <%= @note.name %>
<:subtitle>This is a note record from your database.</:subtitle> <:subtitle><%= @note.slug %></:subtitle>
<:actions> <:actions>
<.link href={~p"/admin/notes/#{@note}/edit"}> <.link href={~p"/admin/notes/#{@note}/edit"}>
<.button>Edit note</.button> <.button>Edit note</.button>
@ -27,13 +27,10 @@ defmodule ChiyaWeb.NoteShowLive do
</.header> </.header>
<.list> <.list>
<:item title="Name"><%= @note.name %></:item> <:item title="Published at"><%= pretty_date(@note.published_at) %> <span>(<%= from_now(@note.published_at) %>)</span></:item>
<:item title="Content"><%= @note.content %></:item> <:item title="Channels"><%= @channels %></:item>
<:item title="Slug"><%= @note.slug %></:item>
<:item title="Published at"><%= @note.published_at %></:item>
<:item title="Kind"><%= @note.kind %></:item> <:item title="Kind"><%= @note.kind %></:item>
<:item title="Url"><%= @note.url %></:item> <:item title="Url"><%= @note.url %></:item>
<:item title="Channels"><%= @channels %></:item>
</.list> </.list>
<.line /> <.line />