From 3fa64cc9e27ea7f85939841a67f9e4220dbcb6d2 Mon Sep 17 00:00:00 2001 From: Yuhuai Liu Date: Wed, 8 Jan 2025 14:04:21 -0500 Subject: [PATCH] auto close oauth callback window --- website/oauth/views.py | 2 +- website/templates/project/project.mako | 15 ++++++++++++--- website/templates/util/oauth_complete.mako | 2 ++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/website/oauth/views.py b/website/oauth/views.py index c83ec31cccc..195f33a5151 100644 --- a/website/oauth/views.py +++ b/website/oauth/views.py @@ -54,7 +54,7 @@ def oauth_callback(service_name, auth): _forward_to_addon_service('oauth1') elif provider._oauth_version == 2: _forward_to_addon_service('oauth2') - return {} + return {'enable_gv': True} user = auth.user diff --git a/website/templates/project/project.mako b/website/templates/project/project.mako index 180639925c6..a068e265857 100644 --- a/website/templates/project/project.mako +++ b/website/templates/project/project.mako @@ -582,8 +582,17 @@ ${ render_addon_widget.render_addon_widget('wiki', addons_widget_data['wiki']) } %endif - %if not enable_gv: - + + % if enable_gv: +
+
+

Files

+
+
+

Files can now be accessed and managed under the Files tab.

+
+
+ % else:

Files

@@ -611,7 +620,7 @@
- %endif + % endif % if addons: diff --git a/website/templates/util/oauth_complete.mako b/website/templates/util/oauth_complete.mako index 2548e4cd13f..c9e11d1cf98 100644 --- a/website/templates/util/oauth_complete.mako +++ b/website/templates/util/oauth_complete.mako @@ -2,7 +2,9 @@