Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #248 from IATI/v1-deprecation-banner
Browse files Browse the repository at this point in the history
Changing the top banner if a version is deprecated
  • Loading branch information
John Askew authored Jun 28, 2019
2 parents 476740b + a944952 commit b9bcf5f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deployment/build_iati_standard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ echo -e "UPDATED DOCS & TEMPLATES \n\n"


# Regenerate all versions of the sites, saving HTML outputs in '_build/dirhtml'
for f in 2.01 2.02 2.03 1.05 1.04; do
for f in 2.01 2.02 2.03; do
cd $f
site_folder="${f//.}"
echo -e "NOW IN FOLDER: $PWD \n\n"
Expand Down Expand Up @@ -112,4 +112,4 @@ for f in 2.01 2.02 2.03 1.05 1.04; do
echo -e "DONE GENERATING SITE: $f \n\n"

cd ..
done
done
2 changes: 1 addition & 1 deletion deployment/deploy_iati_standard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ cd $DIRECTORY


# Regenerate all versions of the sites, saving HTML outputs in '_build/dirhtml'
for f in 1.04 1.05 2.01 2.02 2.03; do
for f in 2.01 2.02 2.03; do
cd $f
echo -e "NOW IN FOLDER: $PWD \n\n"

Expand Down
10 changes: 9 additions & 1 deletion iatistandard/_templates/layout_live.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{% extends "layout_base.html" %}
{% block site_notice %}
<div id="site-notice"><strong>This is version {{version}} of the IATI Standard. <a href="/upgrades/all-versions/">See other versions</a>.</strong></div>
{% if version in ["1.01", "1.02", "1.03", "1.04", "1.05"] %}
<div id="site-notice" style="background-color: red">
<strong>Version {{ version }} of the IATI Standard is no longer supported. <a href="/upgrades/all-versions/">Please use other versions</a>.</strong>
</div>
{% else %}
<div id="site-notice">
<strong>This is version {{version}} of the IATI Standard. <a href="/upgrades/all-versions/">See other versions</a>.</strong>
</div>
{% endif %}
{% endblock %}
{% block extra_scripts %}
<script type="text/javascript">
Expand Down

0 comments on commit b9bcf5f

Please sign in to comment.