use .link helpers
This commit is contained in:
parent
7fa9933a9b
commit
c0441957b6
@ -1,6 +1,7 @@
|
|||||||
# v0.8.4
|
# v0.8.4
|
||||||
- Improve accessibility
|
- Improve accessibility
|
||||||
- Code quality improvements
|
- Code quality improvements
|
||||||
|
- Fix dead link of example bullet abbreviations
|
||||||
|
|
||||||
# v0.8.3
|
# v0.8.3
|
||||||
- Improve some styles
|
- Improve some styles
|
||||||
|
@ -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)} />
|
<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") %>
|
<%= error_tag(f, :desc, "col-span-3 text-center") %>
|
||||||
|
|
||||||
<a
|
<.link
|
||||||
href="https://en.wikipedia.org/wiki/Bullet#Abbreviations"
|
href="https://shootersreference.com/reloadingdata/bullet_abbreviations/"
|
||||||
class="col-span-3 text-center link title text-md text-primary-600"
|
class="col-span-3 text-center link title text-md text-primary-600"
|
||||||
>
|
>
|
||||||
<%= gettext("Example bullet type abbreviations") %>
|
<%= gettext("Example bullet type abbreviations") %>
|
||||||
</a>
|
</.link>
|
||||||
<%= label(f, :bullet_type, gettext("Bullet type"), class: "title text-lg text-primary-600") %>
|
<%= label(f, :bullet_type, gettext("Bullet type"), class: "title text-lg text-primary-600") %>
|
||||||
<%= text_input(f, :bullet_type,
|
<%= text_input(f, :bullet_type,
|
||||||
class: "text-center col-span-2 input input-primary",
|
class: "text-center col-span-2 input input-primary",
|
||||||
|
@ -66,9 +66,13 @@
|
|||||||
</.link>
|
</.link>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="flex flex-wrap justify-center space-x-2">
|
<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 %>
|
<%= email %>
|
||||||
</a>
|
</.link>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</p>
|
</p>
|
||||||
|
@ -61,16 +61,16 @@
|
|||||||
<i class="fa-fw fa-lg fas fa-trash"></i>
|
<i class="fa-fw fa-lg fas fa-trash"></i>
|
||||||
</.link>
|
</.link>
|
||||||
|
|
||||||
<a
|
<.link
|
||||||
href="#"
|
href="#"
|
||||||
class="btn btn-primary"
|
class="btn btn-primary"
|
||||||
phx-click={if invite.disabled_at, do: "enable_invite", else: "disable_invite"}
|
phx-click={if invite.disabled_at, do: "enable_invite", else: "disable_invite"}
|
||||||
phx-value-id={invite.id}
|
phx-value-id={invite.id}
|
||||||
>
|
>
|
||||||
<%= if invite.disabled_at, do: gettext("Enable"), else: gettext("Disable") %>
|
<%= 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())}
|
:if={invite.disabled_at |> is_nil() and not (invite.uses_left |> is_nil())}
|
||||||
href="#"
|
href="#"
|
||||||
class="btn btn-primary"
|
class="btn btn-primary"
|
||||||
@ -83,7 +83,7 @@
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<%= dgettext("actions", "Set Unlimited") %>
|
<%= dgettext("actions", "Set Unlimited") %>
|
||||||
</a>
|
</.link>
|
||||||
</.invite_card>
|
</.invite_card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -24,9 +24,12 @@
|
|||||||
|
|
||||||
<hr class="w-full hr" />
|
<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") %>
|
<%= dgettext("errors", "Go back home") %>
|
||||||
</a>
|
</.link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user