Commit a36fb4db authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Using config for footer and header links

parent 1f9a72b4
......@@ -23,9 +23,9 @@
<a class="navbar-brand" href="{{ url_for('home') }}">
<img src="{{ url_for('static', filename='img/logo-horizontal.png') }}" height="15" alt="Validata" />
</a>
<a class="nav-link" href="https://validata.fr/doku.php?id=utilisation" target="_blank">Mode d'emploi</a>
<a class="nav-link" href="https://scdl.opendatafrance.net/docs" target="_blank">Documentation SCDL</a>
<a class="nav-link" href="https://teamopendata.org/c/socle-commun-des-donnees-locales" target="_blank">Forum</a>
{% for link in config.header.links %}
<a class="nav-link" href="{{ link.url }}" target="_blank">{{ link.title }}</a>
{% endfor %}
<a class="btn btn-outline-danger ml-auto" rel="external" target="_blank" href="https://git.opendatafrance.net/validata/validata-ui/issues/new?issuable_template=Probl%C3%A8me">
Signaler un problème
</a>
......@@ -71,9 +71,10 @@
développée par <a href="https://jailbreak.paris">Jailbreak</a>.
</p>
<p>
<a href="/api/v1/apidocs" target="_blank">API</a>
| <a href="https://git.opendatafrance.net/validata" target="_blank">Codes sources</a>
| <a href="https://riot.im/app/#/room/#validata:jailbreak.paris" target="_blank">Salon de discussion public</a>
{% for link in config.footer.links %}
<a href="{{ link.url }}" target="_blank">{{ link.title }}</a>
{{ " | " if not loop.last }}
{% endfor %}
</p>
<p class="text-muted">
version <a href="https://git.opendatafrance.net/validata/validata-ui/tree/v{{ validata_ui_version }}" target="_blank">{{ validata_ui_version }}</a>
......
......@@ -643,6 +643,7 @@ def validate(schema_instance: SchemaInstance, validata_source: ValidataResource)
return render_template(
"validation_report.html",
config=config.CONFIG,
badge_msg=badge_msg,
badge_url=badge_url,
breadcrumbs=[
......@@ -777,7 +778,7 @@ def home():
"catalog": schema_info_list,
}
return render_template("home.html", sections=list(iter_sections()))
return render_template("home.html", config=config.CONFIG, sections=list(iter_sections()))
@app.route("/pdf")
......@@ -886,6 +887,7 @@ def custom_validator():
)
return render_template(
"validation_form.html",
config=config.CONFIG,
branches=schema_instance.branches,
breadcrumbs=[
{"url": url_for("home"), "title": "Accueil"},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment