-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #684 from Financial-Times/ENTST-139-enterprise-sha…
…ring-tweaks ENTST-139 Add Enterprise Sharing to FTR Articles
- Loading branch information
Showing
11 changed files
with
212 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,14 +50,6 @@ export default ({ | |
} | ||
} | ||
|
||
if (isFreeArticle) { | ||
return ( | ||
<div className="x-gift-article-message"> | ||
This article is currently <strong>free</strong> for anyone to read | ||
</div> | ||
) | ||
} | ||
|
||
if (shareType === ShareType.gift) { | ||
if (giftCredits === 0) { | ||
return ( | ||
|
@@ -123,6 +115,17 @@ export default ({ | |
return ( | ||
<div className="x-gift-article-message"> | ||
Your organisation has <strong>Enterprise Sharing credits</strong> available for you to use | ||
<br /> | ||
<br /> | ||
<a | ||
className="x-gift-article-message--link" | ||
href="https://enterprise-sharing-dashboard.ft.com" | ||
target="_blank" | ||
rel="noreferrer" | ||
data-trackable="enterprise-sharing-dashboard" | ||
> | ||
View all Enterprise Links | ||
</a> | ||
</div> | ||
) | ||
} else { | ||
|
@@ -151,24 +154,31 @@ export default ({ | |
<div className="x-gift-article-message x-gift-article-message--enterprise"> | ||
<h4>Your organisation has run out of share credits.</h4> | ||
<p> | ||
Request more credits and our Enterprise team will get in touch with the admin of your FT | ||
subscription to arrange a top-up of sharing credits. | ||
Request more credits and our team will get in touch with the admin of your FT subscription to | ||
arrange a top-up of sharing credits. | ||
</p> | ||
<a | ||
href="https://enterprise.ft.com/ft-enterprise-sharing-request-access/?segmentId=c87259e0-7073-3ea8-7f83-b988f05c3f94" | ||
target="_blank" | ||
href="mailto:[email protected]" | ||
rel="noreferrer" | ||
data-trackable="enterprise-out-of-credits" | ||
className="x-gift-article__button" | ||
type="button" | ||
> | ||
Request more credits | ||
Contact support | ||
</a> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
if (isFreeArticle) { | ||
return ( | ||
<div className="x-gift-article-message"> | ||
This article is currently <strong>free</strong> for anyone to read | ||
</div> | ||
) | ||
} | ||
|
||
if (shareType === ShareType.nonGift) { | ||
return <div className="x-gift-article-message">This link can only be read by existing subscribers</div> | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.