From 2d6100bfecc55aa0d8a61608fba93ec60249b984 Mon Sep 17 00:00:00 2001 From: Inhji Date: Tue, 4 Jul 2023 07:13:57 +0200 Subject: [PATCH] add icons for note pages --- .../controllers/note_html/index.html.heex | 6 +++--- lib/chiya_web/live/note_show_live.ex | 20 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/chiya_web/controllers/note_html/index.html.heex b/lib/chiya_web/controllers/note_html/index.html.heex index 4647726..b563fa3 100644 --- a/lib/chiya_web/controllers/note_html/index.html.heex +++ b/lib/chiya_web/controllers/note_html/index.html.heex @@ -3,15 +3,15 @@ <:subtitle>Notes are the content, the heart of your site. <:actions> <.link href={~p"/admin/notes/new"}> - <.button>New Note + <.button><.icon name="hero-plus-small" /> New Note <.link href={~p"/admin/notes/import"}> - <.button>Import Note + <.button><.icon name="hero-arrow-down-tray" /> Import Note -
+
<:actions> <.link href={~p"/admin/notes/#{@note}/edit"}> - <.button>Edit + <.button><.icon name="hero-pencil" /> Edit <.link href={~p"/note/#{@note.slug}"}> - <.button>Preview - - <.link href={~p"/admin/notes/#{@note}/raw"}> - <.button>Raw - - <.link href={~p"/admin/notes/#{@note}"} method="delete" data-confirm="Are you sure?"> - <.button>Delete + <.button><.icon name="hero-eye" /> Preview <%= if is_nil(@note.published_at) do %> <.link href={~p"/admin/notes/#{@note}/publish"}> - <.button>Publish + <.button><.icon name="hero-newspaper" /> Publish <% else %> <.link href={~p"/admin/notes/#{@note}/unpublish"}> - <.button>Un-Publish + <.button><.icon name="hero-newspaper" /> Un-Publish <% end %> + <.link href={~p"/admin/notes/#{@note}/raw"}> + <.button><.icon name="hero-code-bracket" /> Raw + + <.link href={~p"/admin/notes/#{@note}"} method="delete" data-confirm="Are you sure?"> + <.button><.icon name="hero-trash" /> Delete +