Api Team list and Teamdetail:

- team/<id> with more Informations (Statistics)
- team/ with auftritte_count
Team Detail:
- Added Wikipedialink Badge.
- Added Profile Picture captched from Wikipedia.
This commit is contained in:
H4nSolo committed 2026-05-18 01:01:50 +02:00
1 parent 126ac88b92
commit 115cf72a81
4 files changed
+228 -39

No files matched your search

+34 -8
View File
@@ -7,14 +7,28 @@
<div class="card-body p-4">
<div class="row align-items-center">
<div class="col-md-7">
<h1 class="display-5 fw-bold mb-1">{{ member.name }}</h1>
{% if ist_stammgast %}
<span class="badge bg-warning text-dark px-3 py-2">
<i class="bi bi-star-fill me-1"></i> Stamm Gast
</span>
{% else %}
<span class="badge bg-secondary px-3 py-2 text-uppercase" style="letter-spacing: 1px; font-size: 0.7rem;">Gast</span>
{% endif %}
<div class="d-flex align-items-center">
{% if wiki_image_url %}
<img src="{{ wiki_image_url }}" alt="{{ member.name }}" class="profile-img me-3" width="96" height="96">
{% endif %}
<div>
<div class="d-flex align-items-center">
<h1 class="display-5 fw-bold mb-1">{{ member.name }}</h1>
{% if wiki_page_url %}
<a href="{{ wiki_page_url }}" target="_blank" rel="noopener noreferrer" class="btn btn-outline-light btn-sm ms-2" title="Wikipedia Eintrag {{ member.name }}">
<i class="bi bi-wikipedia" aria-hidden="true"></i>
</a>
{% endif %}
</div>
{% if ist_stammgast %}
<span class="badge bg-warning text-dark px-3 py-2">
<i class="bi bi-star-fill me-1"></i> Stamm Gast
</span>
{% else %}
<span class="badge bg-secondary px-3 py-2 text-uppercase" style="letter-spacing: 1px; font-size: 0.7rem;">Gast</span>
{% endif %}
</div>
</div>
</div>
<div class="col-md-5">
@@ -200,5 +214,17 @@
top: 0;
z-index: 1020;
}
/* Profilbild Styling */
.profile-img {
width: 96px;
height: 96px;
object-fit: cover;
border-radius: 8px; /* leicht abgerundet */
border: 2px solid rgba(255,255,255,0.08);
box-shadow: 0 2px 6px rgba(0,0,0,0.25);
background-color: #f6f6f6;
display: inline-block;
}
</style>
{% endblock %}