fixing page titles, fleshing out readme
This commit is contained in:
parent
c79a67b345
commit
2fe6f4c174
8 changed files with 86 additions and 6 deletions
lib/shift73k_web
controllers
live
shift_assign_live
shift_import_live
shift_live
shift_template_live
user
templates/layout
|
@ -5,7 +5,7 @@ defmodule Shift73kWeb.UserShiftsCsvController do
|
|||
alias Shift73k.Shifts.Shift
|
||||
|
||||
def new(conn, _params) do
|
||||
render(conn, "new.html")
|
||||
render(conn, "new.html", page_title: "CSV Export")
|
||||
end
|
||||
|
||||
def export(conn, %{"csv_export" => request_params}) do
|
||||
|
|
|
@ -13,6 +13,7 @@ defmodule Shift73kWeb.ShiftAssignLive.Index do
|
|||
def mount(_params, session, socket) do
|
||||
socket
|
||||
|> assign_defaults(session)
|
||||
|> assign(:page_title, "Schedule Shifts")
|
||||
|> assign(:custom_shift, @custom_shift)
|
||||
|> assign(:show_template_btn_active, false)
|
||||
|> assign(:show_template_details, false)
|
||||
|
|
|
@ -13,6 +13,7 @@ defmodule Shift73kWeb.ShiftImportLive.Index do
|
|||
|
||||
socket
|
||||
|> assign_defaults(session)
|
||||
|> assign(:page_title, "iCal Import")
|
||||
|> assign(:url_valid, false)
|
||||
|> assign(:url_validated, false)
|
||||
|> assign(:tz_valid, true)
|
||||
|
|
|
@ -35,7 +35,7 @@ defmodule Shift73kWeb.ShiftLive.Index do
|
|||
|
||||
defp apply_action(socket, :index, _params) do
|
||||
socket
|
||||
|> assign(:page_title, "Listing Shifts")
|
||||
|> assign(:page_title, "My Shifts")
|
||||
|> assign(:shift, nil)
|
||||
end
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ defmodule Shift73kWeb.ShiftTemplateLive.Index do
|
|||
|
||||
defp apply_action(socket, :index, _params) do
|
||||
socket
|
||||
|> assign(:page_title, "Listing Shift templates")
|
||||
|> assign(:page_title, "My Shift Templates")
|
||||
|> assign(:shift_template, nil)
|
||||
end
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ defmodule Shift73kWeb.UserLive.Settings do
|
|||
def mount(_params, session, socket) do
|
||||
socket
|
||||
|> assign_defaults(session)
|
||||
|> assign(:page_title, "User Settings")
|
||||
|> alert_email_verified?()
|
||||
|> live_okreply()
|
||||
end
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<%= csrf_meta_tag() %>
|
||||
<%= live_title_tag assigns[:page_title] || "Shift73k", suffix: " · Phoenix Framework" %>
|
||||
<%= live_title_tag assigns[:page_title] || "", suffix: assigns[:page_title] && " · Shift73k" || "Shift73k" %>
|
||||
<link phx-track-static rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
|
||||
<script defer phx-track-static type="text/javascript" src="<%= Routes.static_path(@conn, "/js/app.js") %>"></script>
|
||||
</head>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue