mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-11 13:30:17 +02:00
Switched styling to warning, added tooltip
This commit is contained in:
parent
eb6d7e9d9a
commit
2dd75b5100
@ -118,8 +118,7 @@ def dashboard_view(request):
|
|||||||
for api in apikeypairs:
|
for api in apikeypairs:
|
||||||
api_chars.append({
|
api_chars.append({
|
||||||
'id': api.api_id,
|
'id': api.api_id,
|
||||||
'sso_verified': api.sso_verified,
|
'sso_verified': api.sso_verified if sso_validation else True,
|
||||||
'is_valid': api.sso_verified if sso_validation else True,
|
|
||||||
'characters': EveManager.get_characters_by_api_id(api.api_id),
|
'characters': EveManager.get_characters_by_api_id(api.api_id),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -68,10 +68,10 @@
|
|||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
{% if apis %}
|
{% if apis %}
|
||||||
{% for api in apis %}
|
{% for api in apis %}
|
||||||
<div class="panel panel-{{ api.is_valid|yesno:"success,danger,default" }}">
|
<div class="panel panel-{{ api.sso_verified|yesno:"success,warning,default" }}">
|
||||||
<div class="panel-heading" style="display:flex;">
|
<div class="panel-heading" style="display:flex;">
|
||||||
<div style="width: 25%;">
|
<div style="width: 25%;" title="{% if not api.sso_verified and api_sso_validation %}{% trans "API Key requires EVE SSO verification" %}{% else %}{% trans "API Key is valid" %}{% endif %}">
|
||||||
{% trans "API ID" %} {{ api.id }} <span class="glyphicon glyphicon-{{ api.is_valid|yesno:"ok-sign,minus-sign,question-sign" }}"></span>
|
{% trans "API ID" %} {{ api.id }} <span class="glyphicon glyphicon-{{ api.sso_verified|yesno:"ok-sign,warning-sign,question-sign" }}"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-right" style="width: 75%;">
|
<div class="text-right" style="width: 75%;">
|
||||||
<a href="{% url 'auth_user_refresh_api' api.id %}" class="btn btn-primary" title="Update"><span class="glyphicon glyphicon-refresh"></span></a>
|
<a href="{% url 'auth_user_refresh_api' api.id %}" class="btn btn-primary" title="Update"><span class="glyphicon glyphicon-refresh"></span></a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user