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:
Tim Abbott
2018-10-11 16:52:00 -07:00
parent b51633efb7
commit fd4c23e12d
4 changed files with 5 additions and 11 deletions

View File

@@ -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">