diff --git a/lib/philomena_web/controllers/reactivation_controller.ex b/lib/philomena_web/controllers/reactivation_controller.ex index 4e1bc4dd..a2a34a99 100644 --- a/lib/philomena_web/controllers/reactivation_controller.ex +++ b/lib/philomena_web/controllers/reactivation_controller.ex @@ -1,10 +1,10 @@ defmodule PhilomenaWeb.ReactivationController do use PhilomenaWeb, :controller alias Philomena.Users.{User} + alias Philomena.Users def show(conn, %{"token" => _}) do - conn - |> render("show.html") + render(conn, "show.html", title: "Reactivate Your Account") end def post(conn, %{"token" => token}) do diff --git a/lib/philomena_web/templates/reactivation/show.html.slime b/lib/philomena_web/templates/reactivation/show.html.slime index ba9f9462..1a209208 100644 --- a/lib/philomena_web/templates/reactivation/show.html.slime +++ b/lib/philomena_web/templates/reactivation/show.html.slime @@ -1,3 +1,3 @@ -h1 Rectivate Account +h1 Reactivate Your Account = button_to "Cancel", ~p"/", class: "button" = button_to "Reactivate", "", class: ["button", "button--state-success", "button--separate-left"], method: "post", data: [confirm: "Are you sure you want to reactivate your account?"] \ No newline at end of file