forked from shibao/cannery
		
	use .link helpers
This commit is contained in:
		@@ -1,3 +1,3 @@
 | 
			
		||||
<.link href={qr_code_image(@content)} download={@filename <> ".png"}>
 | 
			
		||||
<a href={qr_code_image(@content)} download={@filename <> ".png"}>
 | 
			
		||||
  <img class={@image_class} alt={@filename} src={qr_code_image(@content)} />
 | 
			
		||||
</.link>
 | 
			
		||||
</a>
 | 
			
		||||
 
 | 
			
		||||
@@ -29,12 +29,12 @@
 | 
			
		||||
    ) %>
 | 
			
		||||
    <%= error_tag(f, :desc, "col-span-3 text-center") %>
 | 
			
		||||
 | 
			
		||||
    <a
 | 
			
		||||
      href="https://en.wikipedia.org/wiki/Bullet#Abbreviations"
 | 
			
		||||
    <.link
 | 
			
		||||
      href="https://shootersreference.com/reloadingdata/bullet_abbreviations/"
 | 
			
		||||
      class="col-span-3 text-center link title text-md text-primary-600"
 | 
			
		||||
    >
 | 
			
		||||
      <%= gettext("Example bullet type abbreviations") %>
 | 
			
		||||
    </a>
 | 
			
		||||
    </.link>
 | 
			
		||||
    <%= label(f, :bullet_type, gettext("Bullet type"), class: "title text-lg text-primary-600") %>
 | 
			
		||||
    <%= text_input(f, :bullet_type,
 | 
			
		||||
      class: "text-center col-span-2 input input-primary",
 | 
			
		||||
 
 | 
			
		||||
@@ -66,9 +66,13 @@
 | 
			
		||||
          </.link>
 | 
			
		||||
        <% else %>
 | 
			
		||||
          <div class="flex flex-wrap justify-center space-x-2">
 | 
			
		||||
            <a :for={%{email: email} <- @admins} class="hover:underline" href={"mailto:#{email}"}>
 | 
			
		||||
            <.link
 | 
			
		||||
              :for={%{email: email} <- @admins}
 | 
			
		||||
              class="hover:underline"
 | 
			
		||||
              href={"mailto:#{email}"}
 | 
			
		||||
            >
 | 
			
		||||
              <%= email %>
 | 
			
		||||
            </a>
 | 
			
		||||
            </.link>
 | 
			
		||||
          </div>
 | 
			
		||||
        <% end %>
 | 
			
		||||
      </p>
 | 
			
		||||
 
 | 
			
		||||
@@ -61,16 +61,16 @@
 | 
			
		||||
        <i class="fa-fw fa-lg fas fa-trash"></i>
 | 
			
		||||
      </.link>
 | 
			
		||||
 | 
			
		||||
      <a
 | 
			
		||||
      <.link
 | 
			
		||||
        href="#"
 | 
			
		||||
        class="btn btn-primary"
 | 
			
		||||
        phx-click={if invite.disabled_at, do: "enable_invite", else: "disable_invite"}
 | 
			
		||||
        phx-value-id={invite.id}
 | 
			
		||||
      >
 | 
			
		||||
        <%= if invite.disabled_at, do: gettext("Enable"), else: gettext("Disable") %>
 | 
			
		||||
      </a>
 | 
			
		||||
      </.link>
 | 
			
		||||
 | 
			
		||||
      <a
 | 
			
		||||
      <.link
 | 
			
		||||
        :if={invite.disabled_at |> is_nil() and not (invite.uses_left |> is_nil())}
 | 
			
		||||
        href="#"
 | 
			
		||||
        class="btn btn-primary"
 | 
			
		||||
@@ -83,7 +83,7 @@
 | 
			
		||||
        }
 | 
			
		||||
      >
 | 
			
		||||
        <%= dgettext("actions", "Set Unlimited") %>
 | 
			
		||||
      </a>
 | 
			
		||||
      </.link>
 | 
			
		||||
    </.invite_card>
 | 
			
		||||
  </div>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -24,9 +24,12 @@
 | 
			
		||||
 | 
			
		||||
        <hr class="w-full hr" />
 | 
			
		||||
 | 
			
		||||
        <a href={Routes.live_path(Endpoint, HomeLive)} class="link title text-primary-600 text-lg">
 | 
			
		||||
        <.link
 | 
			
		||||
          href={Routes.live_path(Endpoint, HomeLive)}
 | 
			
		||||
          class="link title text-primary-600 text-lg"
 | 
			
		||||
        >
 | 
			
		||||
          <%= dgettext("errors", "Go back home") %>
 | 
			
		||||
        </a>
 | 
			
		||||
        </.link>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </body>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user