diff --git a/lib/livebook_web/live/apps_live.ex b/lib/livebook_web/live/apps_live.ex index fcd7a1019..8f620e045 100644 --- a/lib/livebook_web/live/apps_live.ex +++ b/lib/livebook_web/live/apps_live.ex @@ -31,35 +31,49 @@ defmodule LivebookWeb.AppsLive do current_user={@current_user} saved_hubs={@saved_hubs} > -
-
- -

- <%= if @sessions == [] do %> - No apps currently running. - <% else %> - These apps are currently running. - <% end %> -

-
-
-
-
- <%= "/" <> slug %> -
-
- <%= for {session, idx} <- Enum.with_index(sessions) do %> -
0} class="ml-4 border-l-2 border-gray-300 border-dashed h-6">
- <.app_box session={session} /> - <% end %> -
-
-
+
+ + <.app_list sessions={@sessions} />
""" end + defp app_list(%{sessions: []} = assigns) do + ~H""" +
+
+ <.remix_icon icon="windy-line" class="text-gray-400 text-xl" /> +
+
+
+ You do not have any apps running.
+ You can deploy new apps by opening a notebook and clicking + <.remix_icon icon="rocket-line" class="align-sub text-lg" /> in the sidebar. +
+
+
+ """ + end + + defp app_list(assigns) do + ~H""" +
+
+
+ <%= "/" <> slug %> +
+
+ <%= for {session, idx} <- Enum.with_index(sessions) do %> +
0} class="ml-4 border-l-2 border-gray-300 border-dashed h-6">
+ <.app_box session={session} /> + <% end %> +
+
+
+ """ + end + defp app_box(assigns) do ~H"""