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>
Listing Channels
<.icon name="hero-speaker-wave" /> Channels
<:subtitle>Channels are collections for your notes.</:subtitle>
<:actions>
<.link href={~p"/admin/channels/new"}>
<.button>New Channel</.button>

View file

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

View file

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

View file

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

View file

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