diff --git a/passbook/admin/templates/administration/source/list.html b/passbook/admin/templates/administration/source/list.html index b7c00ec16..0dcd5c2da 100644 --- a/passbook/admin/templates/administration/source/list.html +++ b/passbook/admin/templates/administration/source/list.html @@ -36,7 +36,7 @@ {{ source.name }} {{ source|fieldtype }} - {{ source.additional_info }} + {{ source.additional_info|safe }} {% trans 'Edit' %} diff --git a/passbook/oauth_client/models.py b/passbook/oauth_client/models.py index 94d651ee8..99f37db42 100644 --- a/passbook/oauth_client/models.py +++ b/passbook/oauth_client/models.py @@ -29,14 +29,13 @@ class OAuthSource(Source): def get_login_button(self): url = reverse_lazy('passbook_oauth_client:oauth-client-login', kwargs={'source_slug': self.slug}) - # if self.provider_type == 'github': - # return url, 'github-logo', _('GitHub') return url, self.provider_type, self.name @property def additional_info(self): - return "Callback URL: '%s'" % reverse_lazy('passbook_oauth_client:oauth-client-callback', - kwargs={'source_slug': self.slug}) + return "Callback URL:
%s
" % \ + reverse_lazy('passbook_oauth_client:oauth-client-callback', + kwargs={'source_slug': self.slug}) def has_user_settings(self): """Entrypoint to integrate with User settings. Can either return False if no