mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:19:52 +01:00
Hide the custom share button if the URL is blank
This commit is contained in:
parent
024127e62f
commit
2cb98fc2e0
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue