From 3279e00aa42fed13f95cdff0625656d8259b35e5 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 31 Oct 2023 21:18:16 +0000 Subject: [PATCH] OAuth2: Improve authorize page formatting --- app/templates/oauth/authorize.html | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/app/templates/oauth/authorize.html b/app/templates/oauth/authorize.html index bba6530d..66b1eb16 100644 --- a/app/templates/oauth/authorize.html +++ b/app/templates/oauth/authorize.html @@ -8,6 +8,14 @@ {{ client.owner.username }} {% endblock %} +{% block current_user_name %} + {{ current_user.display_name }} +{% endblock %} + +{% block client_title %} + {{ client.title }} +{% endblock %} + {% block content %}
@@ -17,14 +25,14 @@
+ src="{{ current_user.get_profile_pic_url() }}" />

- {{ _("%(title)s by %(display_name)s", title=client.title, display_name=self.author_link()) }} + {{ _("%(title)s by %(display_name)s", title=self.client_title(), display_name=self.author_link()) }}

- {{ _("wants to access your account") }} + {{ _("wants to access your %(name)s account", name=self.current_user_name()) }}

@@ -35,7 +43,7 @@

- {{ _("Verified Application") }} + {{ _("Verified application") }}

{{ _("ContentDB trusts this application") }} @@ -57,7 +65,7 @@

-
+