mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-12-25 00:44:22 +08:00
Update web client title to Livebook
This commit is contained in:
parent
dae6d5c9c3
commit
0b6e8f7ef2
3 changed files with 4 additions and 4 deletions
|
@ -18,7 +18,7 @@ defmodule LivebookWeb.HomeLive do
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~L"""
|
~L"""
|
||||||
<header class="flex justify-center p-4 border-b">
|
<header class="flex justify-center p-4 border-b">
|
||||||
<h1 class="text-2xl font-medium">LiveBook</h1>
|
<h1 class="text-2xl font-medium">Livebook</h1>
|
||||||
</header>
|
</header>
|
||||||
<div class="container max-w-5xl w-full mx-auto p-4 pb-8 flex flex-col items-center space-y-4">
|
<div class="container max-w-5xl w-full mx-auto p-4 pb-8 flex flex-col items-center space-y-4">
|
||||||
<div class="w-full flex justify-end">
|
<div class="w-full flex justify-end">
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
<%= csrf_meta_tag() %>
|
<%= csrf_meta_tag() %>
|
||||||
<%= live_title_tag assigns[:page_title] || "LiveBook" %>
|
<%= live_title_tag assigns[:page_title] || "Livebook" %>
|
||||||
<link phx-track-static rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
|
<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>
|
<script defer phx-track-static type="text/javascript" src="<%= Routes.static_path(@conn, "/js/app.js") %>"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -7,8 +7,8 @@ defmodule LivebookWeb.HomeLiveTest do
|
||||||
|
|
||||||
test "disconnected and connected render", %{conn: conn} do
|
test "disconnected and connected render", %{conn: conn} do
|
||||||
{:ok, view, disconnected_html} = live(conn, "/")
|
{:ok, view, disconnected_html} = live(conn, "/")
|
||||||
assert disconnected_html =~ "LiveBook"
|
assert disconnected_html =~ "Livebook"
|
||||||
assert render(view) =~ "LiveBook"
|
assert render(view) =~ "Livebook"
|
||||||
end
|
end
|
||||||
|
|
||||||
test "redirects to session upon creation", %{conn: conn} do
|
test "redirects to session upon creation", %{conn: conn} do
|
||||||
|
|
Loading…
Reference in a new issue