chore(landing_strip): hide signup path unless the instance allows registration. (#3055)
This commit is contained in:
parent
1379124682
commit
cb50ecdb07
31 changed files with 61 additions and 27 deletions
|
@ -9,6 +9,10 @@ module ApplicationHelper
|
|||
!user_signed_in? && !single_user_mode?
|
||||
end
|
||||
|
||||
def open_registrations?
|
||||
Setting.open_registrations
|
||||
end
|
||||
|
||||
def add_rtl_body_class(other_classes)
|
||||
other_classes = "#{other_classes} rtl" if [:ar, :fa, :he].include?(I18n.locale)
|
||||
other_classes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue