Simplify handler contexts, template and style tweaks

This commit is contained in:
Juno Takano 2026-01-14 02:52:48 -03:00
commit 940aadb6e5
14 changed files with 176 additions and 110 deletions

View file

@ -1,13 +1,13 @@
<p>There are no nodes. The graph is either empty or failed to parse.</p>
{% if config.raw %}
{% if graph.meta.config.raw %}
<p>Check the
{% if config.raw_toml %}
{% if graph.meta.config.raw_toml %}
<a href="/graph/toml">
{% elif config.raw_json %}
{% elif graph.meta.config.raw_json %}
<a href="/graph/json">
{% endif %}
raw endpoints
{%- if config.raw_toml or config.raw_json -%}
{%- if graph.meta.config.raw_toml or graph.meta.config.raw_json -%}
</a>
{% endif %}
for possible parsing errors.</p>