Skip to content

Commit

Permalink
Show "end of life" notice in header bar
Browse files Browse the repository at this point in the history
References qgis#3452
  • Loading branch information
m-kuhn committed Oct 6, 2019
1 parent 44ba189 commit 7b591cf
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions themes/qgis-theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
{%- set titlesuffix = "" %}
{%- endif %}

{%- macro outdated() %}
<div class="row outdated">
This documentation is for a QGIS version which has reached end of life. Visit the <a href="https://www.qgis.org/en/docs/index.html">latest version</a> instead.
</div>
{%- endmacro %}

{%- macro relbar() %}
<div class="related">
{# QGIS hide this # navigation h3 #}
Expand Down
1 change: 1 addition & 0 deletions themes/qgis-theme/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
</div>
</div>
</div>
{{ outdated() }}
</div>
{% endmacro %}

Expand Down
9 changes: 9 additions & 0 deletions themes/qgis-theme/static/qgis-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -908,3 +908,12 @@ section.menu nav.subnav ul li a:hover {
padding-left: 3px;
padding-right: 3px;
}
.outdated {
background: #ffbaba;
color: #6a0e0e;
padding-top: 10px;
margin-left: 0;
padding-left: 10px;
padding-bottom: 3px;
font-size: 0.9rem;
}
9 changes: 9 additions & 0 deletions themes/qgis-theme/static/qgis-style.less
Original file line number Diff line number Diff line change
Expand Up @@ -909,3 +909,12 @@ section.menu nav.subnav ul li a:hover {
padding-left: 3px;
padding-right: 3px;
}
.outdated {
background: #ffbaba;
color: #6a0e0e;
padding-top: 10px;
margin-left: 0;
padding-left: 10px;
padding-bottom: 3px;
font-size: 0.9rem;
}

0 comments on commit 7b591cf

Please sign in to comment.