update viewhelpers

This commit is contained in:
2022-02-15 22:41:07 -05:00
parent 2ac379adaf
commit d80b80ea22
10 changed files with 19 additions and 9 deletions

View File

@ -5,7 +5,7 @@
<%= if @ammo_groups |> Enum.empty?() do %>
<h2 class="title text-xl text-primary-500">
<%= gettext("No Ammo") %> 😔
<%= gettext("No Ammo") %> <%= display_emoji("😔") %>
</h2>
<%= live_patch(dgettext("actions", "Add your first box!"),

View File

@ -5,7 +5,7 @@
<%= if @ammo_types |> Enum.empty?() do %>
<h2 class="title text-xl text-primary-500">
<%= gettext("No Ammo Types") %> 😔
<%= gettext("No Ammo Types") %> <%= display_emoji("😔") %>
</h2>
<%= live_patch(dgettext("actions", "Add your first type!"),

View File

@ -5,7 +5,7 @@
<%= if @containers |> Enum.empty?() do %>
<h2 class="title text-xl text-primary-500">
<%= gettext("No containers") %> 😔
<%= gettext("No containers") %> <%= display_emoji("😔") %>
</h2>
<%= live_patch(dgettext("actions", "Add your first container!"),

View File

@ -44,7 +44,7 @@
<%= if @container.tags |> Enum.empty?() do %>
<div class="flex flex-row justify-center items-center space-x-4">
<h2 class="title text-lg text-primary-500">
<%= gettext("No tags for this container") %> 😔
<%= gettext("No tags for this container") %> <%= display_emoji("😔") %>
</h2>
<%= live_patch(dgettext("actions", "Why not add one?"),

View File

@ -5,7 +5,7 @@
<%= if @invites |> Enum.empty?() do %>
<h1 class="title text-xl text-primary-500">
<%= gettext("No invites") %> 😔
<%= gettext("No invites") %> <%= display_emoji("😔") %>
</h1>
<%= live_patch(dgettext("actions", "Invite someone new!"),

View File

@ -5,7 +5,7 @@
<%= if @ammo_groups |> Enum.empty?() do %>
<h1 class="title text-xl text-primary-500">
<%= gettext("No ammo staged") %> 😔
<%= gettext("No ammo staged") %> <%= display_emoji("😔") %>
</h1>
<%= live_patch(dgettext("actions", "Why not get some ready to shoot?"),
@ -42,7 +42,7 @@
<%= if @shot_groups |> Enum.empty?() do %>
<h1 class="title text-xl text-primary-500">
<%= gettext("No shots recorded") %> 😔
<%= gettext("No shots recorded") %> <%= display_emoji("😔") %>
</h1>
<% else %>
<h1 class="title text-2xl text-primary-500">

View File

@ -7,7 +7,7 @@
</p>
<%= if @tags |> Enum.empty?() do %>
<h2 class="title text-xl text-primary-500">
<%= gettext("No tags") %> 😔
<%= gettext("No tags") %> <%= display_emoji("😔") %>
</h2>
<%= live_patch(dgettext("actions", "Make your first tag!"),