Updated logic for showing member profile attribution

refs https://github.com/TryGhost/Team/issues/1953
This commit is contained in:
Djordje Vlaisavljevic 2022-09-26 15:44:53 +02:00
parent 6461e814db
commit 81e15f823b

View File

@ -66,15 +66,19 @@
</div>
{{#if (feature 'sourceAttribution')}}
<div class="gh-member-details-attribution">
<h4 class="gh-main-section-header small bn">Signup source</h4>
<h4 class="gh-main-section-header small bn">Attribution</h4>
{{#if (and @member.attribution.url @member.attribution.title)}}
<p>
{{svg-jar "posts"}}
Signed up on&nbsp;<a href="{{@member.attribution.url}}" target="_blank" rel="noopener noreferrer" title="{{ @member.attribution.title }}">{{ @member.attribution.title }}</a>
</p>
{{/if}}
{{#unless (eq this.referrerAttribution.source "Unknown")}}
<p>
{{svg-jar "earth"}}
Coming from&nbsp;<p title="Social: Twitter">{{this.referrerAttribution.source}} / {{this.referrerAttribution.medium}}</p>
Coming from&nbsp;<p title="{{this.referrerAttribution.source}}">{{this.referrerAttribution.source}}</p>
</p>
{{/unless}}
</div>
{{/if}}