fix: display current configured oauth as icon instead of text (#2375)
Before:  After: 
Before Width: | Height: | Size: 8.9 KiB |
|
@ -41,33 +41,14 @@ body.login header {
|
|||
display: inline-block;
|
||||
}
|
||||
|
||||
.login-grid span,
|
||||
.login-grid a {
|
||||
border: 1px solid #e5e5e5;
|
||||
padding: 5px;
|
||||
color: #000;
|
||||
background-position: center bottom;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 92px 92px;
|
||||
height: 92px;
|
||||
width: 92px;
|
||||
margin-inline-end: 10px;
|
||||
}
|
||||
.login-grid .login-github {
|
||||
background-image: url("./github.png");
|
||||
}
|
||||
.login-grid .login-bitbucket {
|
||||
background-image: url("./bitbucket.png");
|
||||
}
|
||||
.login-grid .login-twitter-oauth2 {
|
||||
background-image: url("./twitter.png");
|
||||
}
|
||||
.login-grid .login-openstreetmap,
|
||||
.login-grid .login-openstreetmap-oauth2 {
|
||||
background-image: url("./openstreetmap.png");
|
||||
}
|
||||
.login-grid .login-keycloak {
|
||||
background-image: url("./keycloak.png");
|
||||
}
|
||||
|
||||
/* **************************** */
|
||||
/* home */
|
||||
|
|
Before Width: | Height: | Size: 1.5 KiB |
BIN
umap/static/umap/img/providers/bitbucket.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
umap/static/umap/img/providers/github.png
Normal file
After Width: | Height: | Size: 608 B |
BIN
umap/static/umap/img/providers/keycloak.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
umap/static/umap/img/providers/openstreetmap-oauth2.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
umap/static/umap/img/providers/twitter-oauth2.png
Normal file
After Width: | Height: | Size: 545 B |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 3.1 KiB |
|
@ -1,6 +1,6 @@
|
|||
{% extends "umap/content.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load i18n static %}
|
||||
|
||||
{% block maincontent %}
|
||||
{% include "umap/dashboard_menu.html" with selected="profile" %}
|
||||
|
@ -28,8 +28,10 @@
|
|||
</h3>
|
||||
<ul>
|
||||
{% for name in providers %}
|
||||
<li>
|
||||
{{ name|title }}
|
||||
<li class="login-grid">
|
||||
{% with "umap/img/providers/"|add:name|add:".png" as path %}
|
||||
<img src="{% static path %}" width="92px" height="92px" alt="{{ name }}" />
|
||||
{% endwith %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
@ -46,9 +48,7 @@
|
|||
{% for name in backends.backends %}
|
||||
{% if name not in providers %}
|
||||
<li>
|
||||
<a href="{% url "social:begin" name %}"
|
||||
class="umap-login-popup login-{{ name }}"
|
||||
title="{{ name|title }}"></a>
|
||||
{% include "umap/components/provider.html" with name=name %}
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
|
@ -55,10 +55,7 @@
|
|||
<ul class="login-grid block-grid">
|
||||
{% for name in backends.backends %}
|
||||
<li>
|
||||
<a rel="nofollow"
|
||||
href="{% url "social:begin" name %}"
|
||||
class="umap-login-popup login-{{ name }}"
|
||||
title="{{ name|title }}"></a>
|
||||
{% include "umap/components/provider.html" with name=name %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
8
umap/templates/umap/components/provider.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% load static %}
|
||||
<a href="{% url "social:begin" name %}"
|
||||
class="umap-login-popup"
|
||||
title="{{ name|title }}">
|
||||
{% with "umap/img/providers/"|add:name|add:".png" as path %}
|
||||
<img src="{% static path %}" width="92px" height="92px" alt="{{ name }}" />
|
||||
{% endwith %}
|
||||
</a>
|