fix: display current configured oauth as icon instead of text (#2375)

Before:


![image](https://github.com/user-attachments/assets/b71d78c0-2a11-4d2e-adf5-2f23ccfd6b2e)


After:


![image](https://github.com/user-attachments/assets/35d3494c-275a-42b6-b646-6e025b03d7c5)
This commit is contained in:
Yohan Boniface 2025-01-30 11:03:21 +01:00 committed by GitHub
commit 96895feea0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 16 additions and 30 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

View file

@ -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 */

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

View file

@ -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 %}

View file

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

View 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>