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;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.login-grid span,
|
||||||
.login-grid a {
|
.login-grid a {
|
||||||
border: 1px solid #e5e5e5;
|
border: 1px solid #e5e5e5;
|
||||||
padding: 5px;
|
|
||||||
color: #000;
|
color: #000;
|
||||||
background-position: center bottom;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-size: 92px 92px;
|
|
||||||
height: 92px;
|
height: 92px;
|
||||||
width: 92px;
|
width: 92px;
|
||||||
margin-inline-end: 10px;
|
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 */
|
/* 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" %}
|
{% extends "umap/content.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n static %}
|
||||||
|
|
||||||
{% block maincontent %}
|
{% block maincontent %}
|
||||||
{% include "umap/dashboard_menu.html" with selected="profile" %}
|
{% include "umap/dashboard_menu.html" with selected="profile" %}
|
||||||
|
@ -28,8 +28,10 @@
|
||||||
</h3>
|
</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{% for name in providers %}
|
{% for name in providers %}
|
||||||
<li>
|
<li class="login-grid">
|
||||||
{{ name|title }}
|
{% with "umap/img/providers/"|add:name|add:".png" as path %}
|
||||||
|
<img src="{% static path %}" width="92px" height="92px" alt="{{ name }}" />
|
||||||
|
{% endwith %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -46,9 +48,7 @@
|
||||||
{% for name in backends.backends %}
|
{% for name in backends.backends %}
|
||||||
{% if name not in providers %}
|
{% if name not in providers %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url "social:begin" name %}"
|
{% include "umap/components/provider.html" with name=name %}
|
||||||
class="umap-login-popup login-{{ name }}"
|
|
||||||
title="{{ name|title }}"></a>
|
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -55,10 +55,7 @@
|
||||||
<ul class="login-grid block-grid">
|
<ul class="login-grid block-grid">
|
||||||
{% for name in backends.backends %}
|
{% for name in backends.backends %}
|
||||||
<li>
|
<li>
|
||||||
<a rel="nofollow"
|
{% include "umap/components/provider.html" with name=name %}
|
||||||
href="{% url "social:begin" name %}"
|
|
||||||
class="umap-login-popup login-{{ name }}"
|
|
||||||
title="{{ name|title }}"></a>
|
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</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>
|