diff --git a/README.md b/README.md index 86ef09ba..6c1db496 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # TAKWIMU [![Build Status](https://travis-ci.org/TakwimuAfrica/TAKWIMU.svg?branch=develop)](https://travis-ci.org/TakwimuAfrica/TAKWIMU) +[![Known Vulnerabilities](https://snyk.io/test/github/TakwimuAfrica/TAKWIMU/badge.svg?targetFile=requirements.txt)](https://snyk.io/test/github/TakwimuAfrica/TAKWIMU?targetFile=requirements.txt) + The TAKWIMU web platform powering insight from human development indicators. Helping to find the stories behind the data. Accessible at https://takwimu.africa/ diff --git a/takwimu/templates/takwimu/_includes/report/sections_list.html b/takwimu/templates/takwimu/_includes/report/sections_list.html index 886dcf2e..f830dc40 100644 --- a/takwimu/templates/takwimu/_includes/report/sections_list.html +++ b/takwimu/templates/takwimu/_includes/report/sections_list.html @@ -10,12 +10,12 @@

Country Report Contents< {% include 'takwimu/_includes/report/sections_list_detail.html' %} {% for section in page.sections.all %} - {% include 'takwimu/_includes/report/sections_list_detail.html' with section=section.section %} + {% include 'takwimu/_includes/report/sections_list_detail.html' with section=section.section counter=forloop.counter %} {% endfor %} {# If it's a section #} {% for section in page.get_parent.specific.sections.all %} - {% include 'takwimu/_includes/report/sections_list_detail.html' with section=section.section %} + {% include 'takwimu/_includes/report/sections_list_detail.html' with section=section.section counter=forloop.counter%} {% endfor %} diff --git a/takwimu/templates/takwimu/_includes/report/sections_list_detail.html b/takwimu/templates/takwimu/_includes/report/sections_list_detail.html index 90776e96..9e7a20e2 100644 --- a/takwimu/templates/takwimu/_includes/report/sections_list_detail.html +++ b/takwimu/templates/takwimu/_includes/report/sections_list_detail.html @@ -5,7 +5,7 @@ {% endif %}
-

Section 1

+

Section {{ counter | add:"1" }}

{{ section.title|default:"Country Overview" }}

{% with default_desc="A top-level overview of "|add:page.title|add:" – how it’s governed, the make-up of it’s population, the economy and SDG indicators" %}

{{ section.description|default:default_desc }}