added a separate 'other' non-live controller page path for testing
This commit is contained in:
parent
a815b99f11
commit
2358b6adfb
4 changed files with 59 additions and 0 deletions
16
lib/bones73k_web/controllers/other_controller.ex
Normal file
16
lib/bones73k_web/controllers/other_controller.ex
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
defmodule Bones73kWeb.OtherController do
|
||||||
|
use Bones73kWeb, :controller
|
||||||
|
|
||||||
|
def index(conn, _params) do
|
||||||
|
conn
|
||||||
|
|> put_flash(:success, "Log in was a success. Good for you.")
|
||||||
|
|> put_flash(:error, "Lorem ipsum dolor sit amet consectetur adipisicing elit.")
|
||||||
|
|> put_flash(
|
||||||
|
:info,
|
||||||
|
"Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus dolore sunt quia aperiam sint id reprehenderit? Dolore incidunt alias inventore accusantium nulla optio, ducimus eius aliquam hic, pariatur voluptate distinctio."
|
||||||
|
)
|
||||||
|
|> put_flash(:warning, "Oh no, there's nothing to worry about!")
|
||||||
|
|> put_flash(:primary, "Something in the brand color.")
|
||||||
|
|> render("index.html")
|
||||||
|
end
|
||||||
|
end
|
|
@ -81,6 +81,9 @@ defmodule Bones73kWeb.Router do
|
||||||
get("/users/confirm", UserConfirmationController, :new)
|
get("/users/confirm", UserConfirmationController, :new)
|
||||||
post("/users/confirm", UserConfirmationController, :create)
|
post("/users/confirm", UserConfirmationController, :create)
|
||||||
get("/users/confirm/:token", UserConfirmationController, :confirm)
|
get("/users/confirm/:token", UserConfirmationController, :confirm)
|
||||||
|
|
||||||
|
# Special non-live page for testing only
|
||||||
|
get("/other", OtherController, :index)
|
||||||
end
|
end
|
||||||
|
|
||||||
scope "/", Bones73kWeb do
|
scope "/", Bones73kWeb do
|
||||||
|
|
37
lib/bones73k_web/templates/other/index.html.eex
Normal file
37
lib/bones73k_web/templates/other/index.html.eex
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
<h1 class="text-3xl font-bold leading-tight text-gunmetal-200">
|
||||||
|
Other Page
|
||||||
|
</h1>
|
||||||
|
<h2 class="text-xl leading-tight text-gunmetal-400">
|
||||||
|
With a subtitle no less!
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
|
||||||
|
<!-- Replace with your content -->
|
||||||
|
<%# <div class="px-4 py-6 sm:px-0">
|
||||||
|
<div class="border-4 border-dashed border-gray-200 rounded-lg h-96"></div>
|
||||||
|
</div> %>
|
||||||
|
<p>
|
||||||
|
Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus dolore sunt quia aperiam sint id
|
||||||
|
reprehenderit? Dolore incidunt alias inventore accusantium nulla optio, ducimus eius aliquam hic, pariatur
|
||||||
|
voluptate distinctio.
|
||||||
|
</p>
|
||||||
|
<!-- /End replace -->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<%# <div class="columns is-centered">
|
||||||
|
<div class="column is-three-fifths">
|
||||||
|
|
||||||
|
<div class="title is-4">
|
||||||
|
<span>Other Page</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="subtitle">With a subtitle no less!</div>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus dolore sunt quia aperiam sint id
|
||||||
|
reprehenderit? Dolore incidunt alias inventore accusantium nulla optio, ducimus eius aliquam hic, pariatur
|
||||||
|
voluptate distinctio.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div> %>
|
3
lib/bones73k_web/views/other_view.ex
Normal file
3
lib/bones73k_web/views/other_view.ex
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
defmodule Bones73kWeb.OtherView do
|
||||||
|
use Bones73kWeb, :view
|
||||||
|
end
|
Loading…
Reference in a new issue