From 8ef8ad14b29aa192ea0c756fcf287b612d2011cd Mon Sep 17 00:00:00 2001 From: Inhji Date: Sun, 11 Jun 2023 22:22:22 +0200 Subject: [PATCH] mix format --- config/runtime.exs | 2 +- lib/chiya_web/components/public_components.ex | 7 +------ .../controllers/setting_html/setting_form.html.heex | 12 ++++-------- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index f9d04a5..141fac3 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -72,7 +72,7 @@ if config_env() == :prod do config :waffle, storage_dir_prefix: upload_dir - + # ## SSL Support # # To get SSL working, you will need to add the `https` key diff --git a/lib/chiya_web/components/public_components.ex b/lib/chiya_web/components/public_components.ex index df22bfa..24f3f8a 100644 --- a/lib/chiya_web/components/public_components.ex +++ b/lib/chiya_web/components/public_components.ex @@ -166,12 +166,7 @@ defmodule ChiyaWeb.PublicComponents do def comment_form(assigns) do ~H""" - <.simple_form - :let={f} - for={@changeset} - action={~p"/note/#{assigns.note.slug}/comment"} - class="bg-theme-background -m-3" - > + <.simple_form :let={f} for={@changeset} action="" class="bg-theme-background -m-3"> <.error :if={@changeset.action}> Oops, something went wrong! Please check the errors below. diff --git a/lib/chiya_web/controllers/setting_html/setting_form.html.heex b/lib/chiya_web/controllers/setting_html/setting_form.html.heex index f442084..99e515f 100644 --- a/lib/chiya_web/controllers/setting_html/setting_form.html.heex +++ b/lib/chiya_web/controllers/setting_html/setting_form.html.heex @@ -14,17 +14,13 @@ <.input field={f[:user_agent]} type="text" label="User agent" /> <.input field={f[:custom_css]} type="textarea" label="Custom css" class="font-mono" /> <.input field={f[:custom_html]} type="textarea" label="Custom html" class="font-mono" /> - <.input - field={f[:home_channel_id]} + <.input field={f[:home_channel_id]} type="select" label="Home Channel" options={@channels} /> + <.input + field={f[:micropub_channel_id]} type="select" - label="Home Channel" + label="Micropub Channel" options={@channels} /> - <.input - field={f[:micropub_channel_id]} - type="select" - label="Micropub Channel" options={@channels} - /> <.input field={f[:default_channel_id]} type="select"