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

Changing the top banner if a version is deprecated #248

Merged
merged 3 commits into from
Jun 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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