forked from shibao/cannery
standardize initial buttons
This commit is contained in:
parent
e20552ce86
commit
1b33632c29
@ -4,16 +4,13 @@
|
||||
</h1>
|
||||
|
||||
<%= if @containers |> Enum.empty?() do %>
|
||||
<div class="flex flex-col space-y-4 justify-center items-center">
|
||||
<h1 class="title text-xl text-primary-500">
|
||||
No containers
|
||||
</h1>
|
||||
<h2 class="title text-xl text-primary-500">
|
||||
No containers 😔
|
||||
</h2>
|
||||
|
||||
<%= live_patch to: Routes.container_index_path(@socket, :new),
|
||||
class: "btn btn-primary" do %>
|
||||
Create your first container!
|
||||
<% end %>
|
||||
</div>
|
||||
<%= live_patch "Add your first container!",
|
||||
to: Routes.container_index_path(@socket, :new),
|
||||
class: "btn btn-primary" %>
|
||||
<% else %>
|
||||
<%= live_patch to: Routes.container_index_path(@socket, :new),
|
||||
class: "btn btn-primary" do %>
|
||||
|
@ -4,7 +4,6 @@
|
||||
</h1>
|
||||
|
||||
<%= if @invites |> Enum.empty?() do %>
|
||||
<div class="flex flex-col space-y-4 justify-center items-center">
|
||||
<h1 class="title text-xl text-primary-500">
|
||||
No invites 😔
|
||||
</h1>
|
||||
@ -13,7 +12,6 @@
|
||||
class: "btn btn-primary" do %>
|
||||
Invite someone new!
|
||||
<% end %>
|
||||
</div>
|
||||
<% else %>
|
||||
<%= live_patch to: Routes.invite_index_path(@socket, :new),
|
||||
class: "btn btn-primary" do %>
|
||||
|
@ -6,15 +6,13 @@
|
||||
Tags can be added to your containers to help you organize
|
||||
</p>
|
||||
<%= if @tags |> Enum.empty?() do %>
|
||||
<div class="flex flex-col space-y-4 justify-center items-center">
|
||||
<h1 class="title text-xl text-primary-500">
|
||||
No tags
|
||||
</h1>
|
||||
<%= live_patch("Create your first tag!",
|
||||
<h2 class="title text-xl text-primary-500">
|
||||
No tags 😔
|
||||
</h2>
|
||||
|
||||
<%= live_patch "Make your first tag!",
|
||||
to: Routes.tag_index_path(@socket, :new),
|
||||
class: "btn btn-primary"
|
||||
) %>
|
||||
</div>
|
||||
class: "btn btn-primary" %>
|
||||
<% else %>
|
||||
<%= live_patch("New Tag",
|
||||
to: Routes.tag_index_path(@socket, :new),
|
||||
|
Loading…
Reference in New Issue
Block a user