From 2d162ac0aa30f573b2f85215bd3787f12240379c Mon Sep 17 00:00:00 2001 From: Inhji Date: Wed, 2 Aug 2023 20:48:45 +0200 Subject: [PATCH] mix format --- lib/chiya_web/components/public_components.ex | 18 ++++++------- lib/chiya_web/controllers/note_controller.ex | 8 +++--- .../controllers/page_html/bookmarks.html.heex | 26 ++++++++++++------- ...729160000_add_bookmark_channel_setting.exs | 2 +- 4 files changed, 30 insertions(+), 24 deletions(-) diff --git a/lib/chiya_web/components/public_components.ex b/lib/chiya_web/components/public_components.ex index 7e82a5e..3074271 100644 --- a/lib/chiya_web/components/public_components.ex +++ b/lib/chiya_web/components/public_components.ex @@ -76,13 +76,13 @@ defmodule ChiyaWeb.PublicComponents do <%= for tag <- @note.tags do %> <%= if assigns.linked do %> - - <%= tag.name %> - + + <%= tag.name %> + <% else %> - - <%= tag.name %> - + + <%= tag.name %> + <% end %> <.dot class="text-theme-base/50 last:hidden" /> <% end %> @@ -162,9 +162,9 @@ defmodule ChiyaWeb.PublicComponents do <% end %> <%= if not Enum.empty?(note.tags) do %> - - <.tags note={note} linked={false} /> - + + <.tags note={note} linked={false} /> + <% end %> <% end %> diff --git a/lib/chiya_web/controllers/note_controller.ex b/lib/chiya_web/controllers/note_controller.ex index b2d8127..33669c6 100644 --- a/lib/chiya_web/controllers/note_controller.ex +++ b/lib/chiya_web/controllers/note_controller.ex @@ -11,8 +11,8 @@ defmodule ChiyaWeb.NoteController do conn |> with_channels() - |> render(:index, - notes: notes, + |> render(:index, + notes: notes, page_title: "Notes" ) end @@ -22,8 +22,8 @@ defmodule ChiyaWeb.NoteController do conn |> with_channels() - |> render(:index, - notes: notes, + |> render(:index, + notes: notes, page_title: "Notes" ) end diff --git a/lib/chiya_web/controllers/page_html/bookmarks.html.heex b/lib/chiya_web/controllers/page_html/bookmarks.html.heex index beb37ca..f05c91f 100644 --- a/lib/chiya_web/controllers/page_html/bookmarks.html.heex +++ b/lib/chiya_web/controllers/page_html/bookmarks.html.heex @@ -12,16 +12,22 @@
    - <%= for {letter, tag_group} <- @tags do %> -
  • - <%= letter %> - - <%= for tag <- tag_group do %> - <%= tag.name %> - <% end %> - -
  • - <% end %> + <%= for {letter, tag_group} <- @tags do %> +
  • + + <%= letter %> + + + <%= for tag <- tag_group do %> + + <%= tag.name %> + + <% end %> +
  • + <% end %>
diff --git a/priv/repo/migrations/20230729160000_add_bookmark_channel_setting.exs b/priv/repo/migrations/20230729160000_add_bookmark_channel_setting.exs index 03d4100..2cd28c8 100644 --- a/priv/repo/migrations/20230729160000_add_bookmark_channel_setting.exs +++ b/priv/repo/migrations/20230729160000_add_bookmark_channel_setting.exs @@ -6,4 +6,4 @@ defmodule Chiya.Repo.Migrations.AddBookmarkChannelSetting do add :bookmark_channel_id, references(:channels, on_delete: :nothing) end end -end \ No newline at end of file +end