Hide the custom share button if the URL is blank
This commit is contained in:
parent
024127e62f
commit
2cb98fc2e0
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue