commit af59055c806ceb3ac2107a3165193e67792ada59 Author: emma peel emma.peel@riseup.net Date: Mon Oct 21 15:28:44 2019 +0200
show job offer --- content/about/jobs/shadow-simulation-developer/contents.lr | 2 +- templates/jobs.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/content/about/jobs/shadow-simulation-developer/contents.lr b/content/about/jobs/shadow-simulation-developer/contents.lr index b6f51c8..338da9b 100644 --- a/content/about/jobs/shadow-simulation-developer/contents.lr +++ b/content/about/jobs/shadow-simulation-developer/contents.lr @@ -2,7 +2,7 @@ _model: job --- _template: about.html --- -active: False +active: True --- section: about --- diff --git a/templates/jobs.html b/templates/jobs.html index 58dbf3c..18d8355 100644 --- a/templates/jobs.html +++ b/templates/jobs.html @@ -5,7 +5,7 @@ <div class="accordion" id="accordionJobs"> {% from "macros/jobs.html" import render_active %} {% set items = this.children.filter(F.active == True).all() %} - {% if items|length > 1 %} + {% if items|length > 0 %} {% for item in items %} {{ render_active(item, this.alt) }} {% endfor %}