diff --git a/app/controllers/UserController.php b/app/controllers/UserController.php index 0d038d3..f0c1ba9 100644 --- a/app/controllers/UserController.php +++ b/app/controllers/UserController.php @@ -33,6 +33,7 @@ class UserController extends ControllerBase } } + $this->view->user = $user; $this->view->form = $form; } diff --git a/app/views/user/settings.volt b/app/views/user/settings.volt index e5e74e4..6d7a9a9 100644 --- a/app/views/user/settings.volt +++ b/app/views/user/settings.volt @@ -37,9 +37,50 @@
+
+ +

Social sign-in

+ +
+ +
+
{{ icon('brand/github', [ '3x' ]) }}
+ {% if user.getGithubId() > 0 %} + Disconnect + {% else %} + Connect + {% endif %} +
+ +
+
{{ icon('brand/gitlab', [ '3x' ]) }}
+ {% if user.getGitlabId() > 0 %} + Disconnect + {% else %} + Connect + {% endif %} +
+ +
+
{{ icon('brand/google', [ '3x' ]) }}
+ {% if user.getGoogleId() > 0 %} + Connect + {% else %} + Connect + {% endif %} + +
+ +
+
+ +
+
+
{{ form.render('Save') }}
+