templates: Improve obsolete notice link.

This commit is contained in:
Bradley Sepos
2018-04-23 16:57:32 -04:00
parent 577bbeff9c
commit efeeafe5b8

View File

@@ -2,7 +2,7 @@
{{ template.styles }}
{{ template.header }}
{% if document.state contains "obsolete" %}
<div class="notice obsolete"><p>This article is for an older version of {{ document.project }}. <a href="{{ base.relpath }}/en">See all versions</a>.</p></div>
<div class="notice obsolete"><p>This article is for an older version of {{ document.project }}. <a href="{{ base.relpath }}{{ document.language-code | slug }}/">See all versions</a>.</p></div>
{% endif %}
{% if document.state contains "draft" %}
<div class="notice draft"><p>This article is a draft and may contain incomplete or incorrect information.</p></div>