Skip to content

Commit

Permalink
DOC-4138 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnocentini authored Jun 6, 2019
1 parent ab9e9e8 commit f9d0d11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/partials/main.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<main class="article" data-ceiling="topbar">
{{#if page.attributes.hide-view-latest}}
<!-- No `View Latest` banner -->
{{else}}
{{#if (ne page.componentVersion page.component.latest)}}
<div class="article-banner">
{{#if page.componentVersion.prerelease}}
Expand All @@ -9,6 +12,7 @@
<a class="btn" href="{{ifelse (eq env.SUPPORTS_CURRENT_URL 'true') (relativize (current-url page.url)) (relativize page.latest.url)}}">View Latest</a>
</div>
{{/if}}
{{/if}}
<div class="article-header">
{{> nav-control}}
{{> crumbs}}
Expand Down

0 comments on commit f9d0d11

Please sign in to comment.