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

If hideOutboundLinks flag set, show only an unlinked logo in header #1244

Merged
merged 1 commit into from
May 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions components/n-ui/header/partials/header/top-no-links.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div class="o-header__row o-header__top" data-trackable="header-top">
<div class="o-header__container">
<div class="o-header__top-wrapper">
<div class="o-header__top-column o-header__top-column--center">
<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>
</div>
</div>
</div>
</div>
28 changes: 17 additions & 11 deletions components/n-ui/header/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,35 @@
{{/ifEquals}}



{{#ifEquals nUi.header.variant 'logo-only'}}
{{> n-ui/header/partials/header/top}}
{{#if @root.flags.hideOutboundLinks}}
{{> n-ui/header/partials/header/top-no-links}}
{{else}}
{{#ifEquals nUi.header.variant 'logo-only'}}
{{> n-ui/header/partials/header/top}}
{{else}}
{{> n-ui/header/partials/header/anon}}

{{> n-ui/header/partials/header/top}}
{{> n-ui/header/partials/header/search context="primary"}}
{{> n-ui/header/partials/header/nav}}

{{/ifEquals}}
{{/ifEquals}}

{{#outputBlock 'sub-header'}}{{/outputBlock}}
{{#outputBlock 'sub-header'}}{{/outputBlock}}

{{#unlessEquals nUi.header.variant 'logo-only'}}
{{#unlessEquals nUi.header.variant 'logo-only'}}
{{>n-ui/header/partials/subnav/template}}
{{/unlessEquals}}
{{/unlessEquals}}
{{/if}}

</header>

{{#unless nUi.header.disableSticky}}
<header class="o-header o-header--simple o-header--sticky o--if-js" aria-hidden="true" data-o-header--sticky>
{{> n-ui/header/partials/header/sticky}}
{{#unless @root.flags.hideOutboundLinks}}
<header class="o-header o-header--simple o-header--sticky o--if-js" aria-hidden="true" data-o-header--sticky>
{{> n-ui/header/partials/header/sticky}}

{{> n-ui/header/partials/header/search context="sticky"}}
</header>
{{> n-ui/header/partials/header/search context="sticky"}}
</header>
{{/unless}}
{{/unless}}