style changes

This commit is contained in:
2024-03-26 17:48:37 +01:00
parent c2465d59e5
commit 5bc3d24405
4 changed files with 13 additions and 10 deletions

View File

@ -1,9 +1,10 @@
defmodule SomethingErlangWeb.PageController do
use SomethingErlangWeb, :controller
def home(conn, _params) do
def home(conn, params) do
# The home page is often custom made,
# so skip the default app layout.
conn = assign(conn, :params, params)
render(conn, :home)
end
@ -12,7 +13,7 @@ defmodule SomethingErlangWeb.PageController do
case {
Regex.run(~r{threadid=(\d+)}, path),
Regex.run(~r{pagenumber=(\d+)}, path)
} do
} do
{[_, thread], nil} -> {:ok, thread, 1}
{[_, thread], [_, page]} -> {:ok, thread, page}
_ -> {:error, nil, nil}

View File

@ -1,8 +1,9 @@
<.form :let={f} for={@conn} action={~p"/"}>
<input type="url" name="forum_path" />
<input type="submit" class="btn btn-sm" value="Redirect">
<input type="url" name="forum_path" />
<input type="submit" class="btn btn-sm" value="Redirect" />
</.form>
<pre>
<pre class="whitespace-pre-wrap w-full overflow-x-auto pb-8">
<%= inspect(@current_user) %>
<%= inspect(@conn.cookies) %>
</pre>