From e50a7163e85aa96a5eb9a74aeeba5b1a3e520947 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Wed, 3 Dec 2025 14:04:46 +0100 Subject: [PATCH] Un-break the scope tempalte helpers --- templates/components/scope.html | 9 +++++++-- translations/en.json | 14 +++++++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/templates/components/scope.html b/templates/components/scope.html index 92400a1b6..e6c7b6261 100644 --- a/templates/components/scope.html +++ b/templates/components/scope.html @@ -9,8 +9,13 @@ Please see LICENSE files in the repository root for full details. {# Macro to remove 'safe' scope from a scope list. Usage: {% call(scopes) scope.unsafe_scopes(scopes=["openid", "urn:matrix:client:api:*", "urn:synapse:admin:*", "urn:mas:admin"]) %} - {# `scopes` only has unsafe scopes: ["urn:synapse:admin:*", "urn:mas:admin"] #} - {{ scopes }} + `scopes` only has unsafe scopes: ["urn:synapse:admin:*", "urn:mas:admin"] + + {% endcall %} #} {% macro unsafe_scopes(scopes) -%} diff --git a/translations/en.json b/translations/en.json index be553656a..53ac7ad3d 100644 --- a/translations/en.json +++ b/translations/en.json @@ -655,36 +655,36 @@ "scope": { "edit_profile": "Edit your profile and contact details", "@edit_profile": { - "context": "components/scope.html:38:35-62", + "context": "components/scope.html:44:35-62", "description": "Displayed when the 'urn:mas:graphql:*' scope is requested" }, "manage_sessions": "Manage your devices and sessions", "@manage_sessions": { - "context": "components/scope.html:39:39-69", + "context": "components/scope.html:45:39-69", "description": "Displayed when the 'urn:mas:graphql:*' scope is requested" }, "mas_admin": "Manage users (urn:mas:admin)", "@mas_admin": { - "context": "components/scope.html:46:54-91", + "context": "components/scope.html:52:54-91", "description": "Displayed when the 'urn:mas:admin' scope is requested" }, "send_messages": "Send new messages on your behalf", "@send_messages": { - "context": "components/scope.html:42:35-63" + "context": "components/scope.html:48:35-63" }, "synapse_admin": "Administer the server (urn:synapse:admin:*)", "@synapse_admin": { - "context": "components/scope.html:44:53-94", + "context": "components/scope.html:50:53-94", "description": "Displayed when the 'urn:synapse:admin:*' scope is requested" }, "view_messages": "View your existing messages and data", "@view_messages": { - "context": "components/scope.html:41:35-63", + "context": "components/scope.html:47:35-63", "description": "Displayed when the 'urn:matrix:client:api:*' scope is requested" }, "view_profile": "See your profile info and contact details", "@view_profile": { - "context": "components/scope.html:36:43-70", + "context": "components/scope.html:42:43-70", "description": "Displayed when the 'openid' scope is requested" } },