Skip to content

Commit

Permalink
Fix home
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Aug 16, 2023
1 parent 5cbeac6 commit 3992fbd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
26 changes: 13 additions & 13 deletions isimip_data/home/templates/home/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h3>Output data</h3>
</div>
<h5>Agriculture sector</h5>
<p>
Output data from the {% home_inline_list 'OutputData' 'agriculture' %} simulation rounds.
Output data from {% home_inline_list 'OutputData' 'agriculture' %}.
</p>
</div>
<div class="col-md-3 mb-4">
Expand All @@ -136,7 +136,7 @@ <h5>Agriculture sector</h5>
</div>
<h5>Terrestrial biodiversity sector</h5>
<p>
Output data from the {% home_inline_list 'OutputData' 'biodiversity' %} simulation rounds.
Output data from {% home_inline_list 'OutputData' 'biodiversity' %}.
</p>
</div>
<div class="col-md-3 mb-4">
Expand All @@ -154,7 +154,7 @@ <h5>Terrestrial biodiversity sector</h5>
</div>
<h5>Biomes sector</h5>
<p>
Output data from the {% home_inline_list 'OutputData' 'biomes' %} simulation rounds.
Output data from {% home_inline_list 'OutputData' 'biomes' %}.
</p>
</div>
<div class="col-md-3 mb-4">
Expand All @@ -172,7 +172,7 @@ <h5>Biomes sector</h5>
</div>
<h5>Fire sector</h5>
<p>
Output data from the {% home_inline_list 'OutputData' 'fire' %} simulation round.
Output data from {% home_inline_list 'OutputData' 'fire' %}.
</p>
</div>
<div class="col-md-3 mb-4">
Expand All @@ -190,7 +190,7 @@ <h5>Fire sector</h5>
</div>
<h5>Regional forests sector</h5>
<p>
Output data from the {% home_inline_list 'OutputData' 'forestry' %} simulation round.
Output data from {% home_inline_list 'OutputData' 'forestry' %}.
</p>
</div>
<div class="col-md-3 mb-4">
Expand All @@ -208,7 +208,7 @@ <h5>Regional forests sector</h5>
</div>
<h5>Temperature-related mortality sector</h5>
<p>
Output data from the {% home_inline_list 'OutputData' 'health' %} simulation round.
Output data from {% home_inline_list 'OutputData' 'health' %}.
</p>
</div>
<div class="col-md-3 mb-4">
Expand All @@ -226,7 +226,7 @@ <h5>Temperature-related mortality sector</h5>
</div>
<h5>Lakes (global) sector</h5>
<p>
Output data from the {% home_inline_list 'OutputData' 'lakes_global' %} simulation rounds.
Output data from {% home_inline_list 'OutputData' 'lakes_global' %}.
</p>
</div>
<div class="col-md-3 mb-4">
Expand All @@ -244,7 +244,7 @@ <h5>Lakes (global) sector</h5>
</div>
<h5>Lakes (local) sector</h5>
<p>
Output data from the {% home_inline_list 'OutputData' 'lakes_local' %} simulation rounds.
Output data from {% home_inline_list 'OutputData' 'lakes_local' %}.
</p>
</div>
<div class="col-md-3 mb-4">
Expand All @@ -262,7 +262,7 @@ <h5>Lakes (local) sector</h5>
</div>
<h5>Fisheries & Marine Ecosystems (global) sector</h5>
<p>
Output data from the {% home_inline_list 'OutputData' 'marine-fishery_global' %} simulation round.
Output data from {% home_inline_list 'OutputData' 'marine-fishery_global' %}.
</p>
</div>
<div class="col-md-3 mb-4">
Expand All @@ -280,7 +280,7 @@ <h5>Fisheries & Marine Ecosystems (global) sector</h5>
</div>
<h5>Fisheries & Marine Ecosystems (regional) sector</h5>
<p>
Output data from the {% home_inline_list 'OutputData' 'marine-fishery_regional' %} simulation round.
Output data from {% home_inline_list 'OutputData' 'marine-fishery_regional' %}.
</p>
</div>
<div class="col-md-3 mb-4">
Expand All @@ -298,7 +298,7 @@ <h5>Fisheries & Marine Ecosystems (regional) sector</h5>
</div>
<h5 class="card-title">Permafrost sector</h5>
<p>
Output data from the {% home_inline_list 'OutputData' 'permafrost' %} simulation rounds.
Output data from {% home_inline_list 'OutputData' 'permafrost' %}.
</p>
</div>
<div class="col-md-3 mb-4">
Expand All @@ -316,7 +316,7 @@ <h5 class="card-title">Permafrost sector</h5>
</div>
<h5>Water (global) sector</h5>
<p>
Output data from the {% home_inline_list 'OutputData' 'water_global' %} simulation rounds.
Output data from {% home_inline_list 'OutputData' 'water_global' %}.
</p>
</div>
<div class="col-md-3 mb-4">
Expand All @@ -334,7 +334,7 @@ <h5>Water (global) sector</h5>
</div>
<h5>Water (regional) sector</h5>
<p>
Output data from the {% home_inline_list 'OutputData' 'water_regional' %} simulation rounds.
Output data from {% home_inline_list 'OutputData' 'water_regional' %}.
</p>
</div>
</div>
Expand Down
4 changes: 1 addition & 3 deletions isimip_data/home/templates/home/tags/home_inline_list.html
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{% for text, href in links %}
<a class="badge badge-light" href="{{ href }}">{{ text }}</a>{% if forloop.revcounter0 == 1 %}, and{% elif forloop.revcounter > 1 %}, {% endif %}
{% endfor %}
{% for text, href in links %}<a class="badge badge-light" href="{{ href }}">{{ text }}</a>{% if forloop.revcounter0 == 1 %}{% if forloop.counter0 > 1 %},{% endif %} and{% elif forloop.revcounter > 1 %}, {% endif %}{% endfor %}

0 comments on commit 3992fbd

Please sign in to comment.