From af22f507f46d67b0c29727d04ed3424b81292cb2 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 6 Jul 2020 17:48:53 +0200 Subject: [PATCH] sources/oauth: fix template for user settings --- .../oauth/templates/oauth_client/user.html | 37 +++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/passbook/sources/oauth/templates/oauth_client/user.html b/passbook/sources/oauth/templates/oauth_client/user.html index b216a3849..c8c3827b9 100644 --- a/passbook/sources/oauth/templates/oauth_client/user.html +++ b/passbook/sources/oauth/templates/oauth_client/user.html @@ -1,22 +1,29 @@ {% extends "user/base.html" %} +{% load passbook_utils %} {% load i18n %} {% block page %} -
-

{{ source.name }}

-
-
- {% if connections.exists %} -

{% trans 'Connected.' %}

- - {% trans 'Disconnect' %} - - {% else %} -

Not connected.

- - {% trans 'Connect' %} - - {% endif %} +
+
+ {% blocktrans with source_name=source.name %} + Source {{ source_name }} + {% endblocktrans %} +
+
+ {% if connections.exists %} +

{% trans 'Connected.' %}

+ + {% trans 'Disconnect' %} + + {% else %} +

Not connected.

+ + {% trans 'Connect' %} + + {% endif %} +
{% endblock %}