mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
login: Clean up CSS/HTML for google/github login buttons.
This removes some unnecessary code duplication in the CSS classes for Google and GitHub authentication social auth buttons. This will, in turn, help us avoid extra work every time we add a new authentication backend.
This commit is contained in:
@@ -133,7 +133,7 @@
|
||||
{% endif %} <!-- if password_auth_enabled -->
|
||||
|
||||
{% if google_auth_enabled %}
|
||||
<div class="login-google">
|
||||
<div class="login-social">
|
||||
<form id='google_login_form' class="form-inline" action="{{ url('zerver.views.auth.start_google_oauth2') }}" method="get">
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
<button class="login-social-button login-google-button full-width">
|
||||
@@ -144,7 +144,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% if github_auth_enabled %}
|
||||
<div class="login-github">
|
||||
<div class="login-social">
|
||||
<form id='social_login_form' class="form-inline github-wrapper" action="{{ url('login-social', args=('github',)) }}" method="get">
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
<button class="login-social-button login-github-button github">
|
||||
|
||||
Reference in New Issue
Block a user