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
				
			
		|  | @ -1,6 +1,6 @@ | |||
| .landing-strip | ||||
|   = t('landing_strip_html', | ||||
|     name: content_tag(:span, display_name(account), class: :emojify), | ||||
|     domain: site_hostname, | ||||
|     link_to_root_path: link_to(content_tag(:strong, site_hostname), root_path), | ||||
|     sign_up_path: new_user_registration_path) | ||||
|     link_to_root_path: link_to(content_tag(:strong, site_hostname), root_path)) | ||||
|   - if open_registrations? | ||||
|     = t('landing_strip_signup_html', sign_up_path: new_user_registration_path) | ||||
|  |  | |||
		Reference in a new issue