diff --git a/docs/applications/_summary.rst.jinja b/docs/applications/_summary.rst.jinja index 96ba49b3d8..5fcced1f2f 100644 --- a/docs/applications/_summary.rst.jinja +++ b/docs/applications/_summary.rst.jinja @@ -3,45 +3,44 @@ * - View on GitHub - :bdg-link-primary-line:`applications/{{ app.name }} ` :bdg-link-primary-line:`Application template ` - {% if app.homepage %} + {%- if app.homepage %} * - Homepage - {{ app.homepage }} - {% endif %} - {% if app.source_urls %} + {%- endif %} + {%- if app.source_urls %} * - Source - {% if app.source_urls|length == 1 %} + {%- if app.source_urls|length == 1 %} - {{ app.source_urls[0] }} - {% else %} + {%- else %} - - {{ app.source_urls[0] }} - {% for source_url in app.source_urls[1:] %} + {%- for source_url in app.source_urls[1:] %} - {{ source_url }} - {% endfor %} - {% endif %} - {% endif %} - {% if app.doc_links %} + {%- endfor %} + {%- endif %} + {%- endif %} + {%- if app.doc_links %} * - Related docs - {% if app.doc_links|length == 1 %} + {%- if app.doc_links|length == 1 %} - {{ app.doc_links[0].to_rst() }} - {% else %} + {%- else %} - - {{ app.doc_links[0].to_rst() }} - {% for doc_link in app.doc_links[1:] %} + {%- for doc_link in app.doc_links[1:] %} - {{ doc_link.to_rst() }} - {% endfor %} - {% endif %} - {% endif %} + {%- endfor %} + {%- endif %} + {%- endif %} * - Type - Helm_ * - Namespace - {{ app.namespace }} * - Environments - .. list-table:: - {% for env_name in app.active_environments %} * - :px-env:`{{ env_name }}` - `values `__ - {% if envs[env_name].argocd_url %} + {%- if envs[env_name].argocd_url %} - `Argo CD <{{ envs[env_name].argocd_url }}/applications/{{ app.name }}>`__ - {% else %} + {%- else %} - - {% endif %} - {% endfor %} + {%- endif %} + {%- endfor %} diff --git a/docs/environments/_summary.rst.jinja b/docs/environments/_summary.rst.jinja index 97002cab01..7f192f5df6 100644 --- a/docs/environments/_summary.rst.jinja +++ b/docs/environments/_summary.rst.jinja @@ -36,18 +36,17 @@ {% for scope_groups in env.gafaelfawr_scopes %} * - ``{{ scope_groups.scope }}`` - - {{ scope_groups.groups_as_rst()[0] }} - {% if scope_groups.groups|length > 1 %} - {% for group in scope_groups.groups_as_rst()[1:] %} + {%- if scope_groups.groups|length > 1 %} + {%- for group in scope_groups.groups_as_rst()[1:] %} - {{ group }} {%- endfor %} {%- endif %} {%- endfor %} - {% endif %} + {%- endif %} {% if env.argocd_rbac %} * - Argo CD RBAC - .. csv-table:: - {% for line in env.argocd_rbac_csv %} {{ line }} {%- endfor %} - {% endif %} + {%- endif %}