Hide the custom share button if the URL is blank

This commit is contained in:
Andreas Nedbal 2023-02-05 21:14:04 +01:00 committed by Andreas Nedbal
parent 024127e62f
commit 2cb98fc2e0
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@
%a.btn.btn-primary{ href: "#", data: { inbox_sharing_target: "tumblr" }, target: "_blank" }
%i.fab.fa-tumblr.fa-fw
Tumblr
- if current_user.sharing_custom_url
- unless current_user.sharing_custom_url.blank?
%a.btn.btn-primary{ href: current_user.sharing_custom_url, data: { inbox_sharing_target: "custom" }, target: "_blank" }
= current_user.display_sharing_custom_url
%p.text-muted= t(".sharing.hint_html", settings: link_to(t(".sharing.settings"), settings_sharing_path))