- <DetailsLink feature={addressLine}>details</DetailsLink>
- {:else if addressLine.type.match(/^country/)}
- <PageLink page='search' params_hash={{ country: addressLine.localname }}>search by name</PageLink>
- {:else if addressLine.type === 'postcode'}
- <PageLink page='search' params_hash={{ postalcode: addressLine.localname }}>search by name</PageLink>
+ <DetailsLink feature={addressLine}>
+ details
+ </DetailsLink>
+ {:else if !reverse_only && addressLine.type.match(/^country/)}
+ <PageLink page='search' params_hash={{ country: addressLine.localname }}>
+ search by name
+ </PageLink>
+ {:else if !reverse_only && addressLine.type === 'postcode'}
+ <PageLink page='search'
+ params_hash={{ postalcode: addressLine.localname, country: sCountryCode }}>
+ search by name
+ </PageLink>