Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5407 from magento/db_version_checker
Browse files Browse the repository at this point in the history
Added version banner to layout.
  • Loading branch information
dobooth authored Sep 17, 2019
2 parents 6d4af89 + 6acb28e commit 749ccf4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
21 changes: 14 additions & 7 deletions _includes/layout/page-header.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
<!-- page-header -->
<section class="page-intro">
{% if page.ee_only == true %}
<span class="ee-only">{{site.data.var.ee}} only</span>
{% endif %}
{% if page.guide_version != site.version %}
<div class="message-banner version-banner">
You are reading the documentation for version {{page.guide_version}}. Magento {{site.version}} is the latest version available.
Ensure you are reading the documentation for your version of Magento.
</div>
{% endif %}

{% if page.subtitle %}
<h1 class="page-subtitle">{{ page.subtitle }}</h1>
{% endif %}
{% if page.ee_only == true %}
<span class="ee-only">{{site.data.var.ee}} only</span>
{% endif %}

<h1 class="page-heading">{{ page.title }}</h1>
{% if page.subtitle %}
<h1 class="page-subtitle">{{ page.subtitle }}</h1>
{% endif %}

<h1 class="page-heading">{{ page.title }}</h1>
</section>
4 changes: 4 additions & 0 deletions common/css/devdocs.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.message-banner {
margin: 0;
padding: 10px;
}

.page-updated {
Expand All @@ -19,4 +20,7 @@

.ref-list dt{
font-weight:500;
}
.message-banner.version-banner {
margin-bottom: 15px;
}

0 comments on commit 749ccf4

Please sign in to comment.