Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Allow header logo to not be a link (for when page is linked to from i…
Browse files Browse the repository at this point in the history
…OS app and no nav should be available)

 🐿 v2.8.0
  • Loading branch information
jonnywyatt committed Apr 6, 2018
1 parent 76fefd9 commit e206370
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/n-ui/header/partials/header/top.html
Expand Up @@ -18,12 +18,21 @@
</div>
{{/unlessEquals}}
<div class="o-header__top-column o-header__top-column--center">
{{#unlessEquals nUi.header.logoLink false}}
<a class="o-header__top-logo {{#if @root.flags.perfJanky}}o-header__top-logo--inlined{{/if}}" data-trackable="logo" href="/" title="Go to Financial Times homepage">
{{#if @root.flags.perfJanky}}
{{#inline file='logo-images/src/brand-ft-masthead.svg'}}{{/inline}}
{{/if}}
<span class="o-header__visually-hidden">Financial Times</span>
</a>
{{else}}
<div class="o-header__top-logo {{#if @root.flags.perfJanky}}o-header__top-logo--inlined{{/if}}">
{{#if @root.flags.perfJanky}}
{{#inline file='logo-images/src/brand-ft-masthead.svg'}}{{/inline}}
{{/if}}
<span class="o-header__visually-hidden">Financial Times</span>
</div>
{{/unlessEquals}}
</div>
{{#unlessEquals nUi.header.variant 'logo-only'}}
<div class="o-header__top-column o-header__top-column--right">
Expand Down

0 comments on commit e206370

Please sign in to comment.