diff --git a/lib/polar_web/components/layouts/app.html.heex b/lib/polar_web/components/layouts/app.html.heex index c5f1df6..d045855 100644 --- a/lib/polar_web/components/layouts/app.html.heex +++ b/lib/polar_web/components/layouts/app.html.heex @@ -168,7 +168,7 @@
<.flash_group flash={@flash} /> -
+
<%= @inner_content %>
diff --git a/lib/polar_web/live/dashboard/space_live.ex b/lib/polar_web/live/dashboard/space_live.ex index c21c428..35f92ff 100644 --- a/lib/polar_web/live/dashboard/space_live.ex +++ b/lib/polar_web/live/dashboard/space_live.ex @@ -51,40 +51,42 @@ defmodule PolarWeb.Dashboard.SpaceLive do id={"credential_#{credential.id}"} class="relative flex justify-between gap-x-6 px-4 py-5 hover:bg-gray-50 sm:px-6" > -
-
-

<%= credential.name %>

+ <.link navigate={~p"/dashboard/spaces/#{credential.space_id}/credentials/#{credential.id}"}> +
+
+

<%= credential.name %>

+
+
+

+ <%= gettext("Created on") %> + +

+ + + +

+ <%= if credential.expires_at do %> + <%= gettext("Expires at") %> <%= Calendar.strftime( + credential.expires_at, + "%d %b %Y" + ) %> + <% else %> + <%= gettext("Never Expires") %> + <% end %> +

+
-
-

- <%= gettext("Created on") %> - -

- - - -

- <%= if credential.expires_at do %> - <%= gettext("Expires at") %> <%= Calendar.strftime( - credential.expires_at, - "%d %b %Y" - ) %> - <% else %> - <%= gettext("Never Expires") %> - <% end %> -

+
+ <.link + navigate={~p"/dashboard/spaces/#{credential.space_id}/credentials/#{credential.id}"} + class="hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" + > + <%= gettext("View credential") %> +
-
-
- <.link - navigate={~p"/dashboard/spaces/#{credential.space_id}/credentials/#{credential.id}"} - class="hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" - > - <%= gettext("View credential") %> - -
+
diff --git a/lib/polar_web/live/dashboard_live.ex b/lib/polar_web/live/dashboard_live.ex index 03a0e63..b91021e 100644 --- a/lib/polar_web/live/dashboard_live.ex +++ b/lib/polar_web/live/dashboard_live.ex @@ -48,31 +48,33 @@ defmodule PolarWeb.DashboardLive do id={"space_#{space.id}"} class="relative flex justify-between gap-x-6 px-4 py-5 hover:bg-gray-50 sm:px-6" > -
-
-

<%= space.name %>

+ <.link navigate={~p"/dashboard/spaces/#{space.id}"}> +
+
+

<%= space.name %>

+
+
+

+ <%= gettext("Created on") %> + +

+ + + +

<%= gettext("Owned by") %> <%= space.owner.email %>

+
-
-

- <%= gettext("Created on") %> - -

- - - -

<%= gettext("Owned by") %> <%= space.owner.email %>

+
+ <.link + navigate={~p"/dashboard/spaces/#{space.id}"} + class="hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" + > + <%= gettext("View space") %> +
-
-
- <.link - navigate={~p"/dashboard/spaces/#{space.id}"} - class="hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block" - > - <%= gettext("View space") %> - -
+