This repository has been archived by the owner on Apr 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't handle anonymity within the template
- Loading branch information
Showing
1 changed file
with
32 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,35 @@ | ||
{{#unlessAll data.settings.isAnon data.settings.hideFromAnon}} | ||
<div class="tour-tip tour-tip--{{data.settings.size}}{{#each data.modifiers}} tour-tip--{{this}}{{/each}}" data-trackable="tour-tip-{{data.id}}"> | ||
<div class="tour-tip__main"> | ||
<div class="tour-tip__text"> | ||
{{#if data.settings.hasTourPageLink}} | ||
<p class="tour-tip__link"> | ||
<a href="/tour" class="tour-tip__link" data-trackable="tour-link">New hints and tips</a> | ||
</p> | ||
{{/if}} | ||
<div class="tour-tip__standout">{{data.content.title}}</div> | ||
{{#if data.content.body}} | ||
<p class="tour-tip__body">{{{data.content.body}}}</p> | ||
{{/if}} | ||
{{#ifAll data.content.ctas data.content.ctas.length}} | ||
{{#unlessAll data.settings.isAnon data.settings.hideCtaFromAnon}} | ||
{{#each data.content.ctas}} | ||
<a href="{{{url}}}" class="tour-tip__cta o-buttons o-buttons--standout" data-trackable="cta">{{label}}</a> | ||
{{/each}} | ||
{{/unlessAll}} | ||
{{/ifAll}} | ||
</div> | ||
{{#if data.content.imageUrl}} | ||
<div class="tour-tip__img-container"> | ||
{{#if data.content.imageWidths}} | ||
{{#nImagePresenter alt=data.content.imageAlt classes="tour-tip__img" widths=data.content.imageWidths sizes=data.content.imageSizes url=data.content.imageUrl}} | ||
{{> n-image/templates/image}} | ||
{{/nImagePresenter}} | ||
{{else}} | ||
{{#nImagePresenter alt=data.content.imageAlt classes="tour-tip__img" sizes=data.content.imageSizes src=data.content.imageUrl}} | ||
{{> n-image/templates/image}} | ||
{{/nImagePresenter}} | ||
{{/if}} | ||
</div> | ||
<div class="tour-tip tour-tip--{{data.settings.size}}{{#each data.modifiers}} tour-tip--{{this}}{{/each}}" data-trackable="tour-tip-{{data.id}}"> | ||
<div class="tour-tip__main"> | ||
<div class="tour-tip__text"> | ||
{{#if data.settings.hasTourPageLink}} | ||
<p class="tour-tip__link"> | ||
<a href="/tour" class="tour-tip__link" data-trackable="tour-link">New hints and tips</a> | ||
</p> | ||
{{/if}} | ||
<div class="tour-tip__standout">{{data.content.title}}</div> | ||
{{#if data.content.body}} | ||
<p class="tour-tip__body">{{{data.content.body}}}</p> | ||
{{/if}} | ||
{{#ifAll data.content.ctas data.content.ctas.length}} | ||
{{#unlessAll data.settings.isAnon data.settings.hideCtaFromAnon}} | ||
{{#each data.content.ctas}} | ||
<a href="{{{url}}}" class="tour-tip__cta o-buttons o-buttons--standout" data-trackable="cta">{{label}}</a> | ||
{{/each}} | ||
{{/unlessAll}} | ||
{{/ifAll}} | ||
</div> | ||
{{#if data.content.imageUrl}} | ||
<div class="tour-tip__img-container"> | ||
{{#if data.content.imageWidths}} | ||
{{#nImagePresenter alt=data.content.imageAlt classes="tour-tip__img" widths=data.content.imageWidths sizes=data.content.imageSizes url=data.content.imageUrl}} | ||
{{> n-image/templates/image}} | ||
{{/nImagePresenter}} | ||
{{else}} | ||
{{#nImagePresenter alt=data.content.imageAlt classes="tour-tip__img" sizes=data.content.imageSizes src=data.content.imageUrl}} | ||
{{> n-image/templates/image}} | ||
{{/nImagePresenter}} | ||
{{/if}} | ||
</div> | ||
{{/if}} | ||
</div> | ||
{{/unlessAll}} | ||
</div> |