Skip to content

Site map

Chris Symonds edited this page Aug 19, 2022 · 2 revisions

Below is the site map for iFEED, with the names of the html files for that page included, all of which are stored in Applications/Flask_App/templates with the exception of pages generated by Dash - the templates for those pages are in Applications/DashApp/layouts.py. Calibrated Statement appears twice because it is linked to from two different places. Pages that are shown as being linked from the home page are reached via the navbar or the footer.

Home ----------------------------------------(home.html.j2)
|
|____Results --------------------------------(bycountry.html.j2)
|    |
|    |____Scenario --------------------------(scenarios.html.j2)
|    |    |
|    |    |____Calibrated Statements---------(calibrated.html.j2)
|    |    |____Data Exploration--------------(Applications/DashApp/layouts.py:layoutcustom())
|    |
|    |____Key Findings-----------------------(KeyFindings.html.j2)
|    |____Country Info-----------------------(CountryInfo.html.j2)
|
|____About-----------------------------------(about.html.j2)
|    |
|    |____Infographic------------------------(infographic.html.j2)
|
|____iFEED Methods---------------------------(infopage1.html.j2)
|    |
|    |____Full Comparison Data Exploration---(Applications/DashApp/layouts.py:layoutfullcomar())
|    |____Calibrated Statements--------------(calibrated.html.j2)
|
|____Contact---------------------------------(contact.html.j2)
|
|____Copyright-------------------------------(copyright.html.j2)
|
|____Privacy Notice--------------------------(privacy.html.j2)

Intra-country comparison data exploration----(Applications/DashApp/layouts.py:layoutquadcompar())
  (orphan - page exists but not linked to)

In addition to the above, there are error handling pages for 403, 404, 500 and 501 errors as well as infrastructure in the site for a login system which is not used. The html files for this login system are

access.html.j2
account.html.j2
add.html.j2
admininfo.html.j2
change-pwd.html.j2
login.html.j2
view.html.j2
includes/_formhelpers.html.j2
includes/_messages.html.j2

HTML files that are used on every page are layout.html.j2, includes/_header.html.j2 and includes/_footer.html.j2. The layout is basically the bare bones of each page, containing the header (title bar, nav bar, space for the page title), the footer (collaborator logos, privacy and copyright notices), and all the scripts, stylesheets and settings that are used site-wide. Each of the template files contains the lines

{% extends 'layout.html.j2' %}
{% block body %}
    :
    :
    :
{% endblock %}

which serves to insert the html from inside this defined block into layout.html.j2. For the Dash pages, the layout is not used in the same way but instead it is duplicated in the mainlayout.py file.

It should be noted that as well as the various html files mentioned above, there are also some html files that are not used and are not a part of the login system. These are

includes/_navbar.html.j2
docpage.html.j2
glossary.html.j2
infopage2.html.j2
infopage3.html.j2

Some of these files have rules written for them in the flask blueprints so care should be taken in removing them.

Clone this wiki locally