Skip to content

Commit

Permalink
Hide badges for non-squad members
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin committed Oct 6, 2024
1 parent a7b8aae commit ee705cb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion django/stats/static/stats.css
Original file line number Diff line number Diff line change
Expand Up @@ -665,14 +665,22 @@ div.session .match-scoreboard table tr td .player-name {
margin-left: 1mm;
}

div.session .match-scoreboard table tr td .badge-list {
div.session .match-scoreboard table tr.is-not-squad-member td {
opacity: 0.5;
}

div.session .match-scoreboard table tr.is-squad-member td .badge-list {
display: inline-block;
height: 0;
overflow: visible;
transform: translate(0px, -1.05em);
filter: drop-shadow(0 0 1mm #ccc);
}

div.session .match-scoreboard table tr.is-not-squad-member td .badge-list {
display: none;
}

div.session .match-scoreboard table tr td .badge {
width: auto;
height: 2em;
Expand Down
2 changes: 1 addition & 1 deletion django/stats/templates/stats/sessions-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

{% for mp in m.matchparticipation_set.all %}{% if mp.team == team_idx|add:"0" %}

<tr>
<tr class="{% if mp.player.steamid in session.participated_squad_members_steamids %}is-squad-member{% else %}is-not-squad-member{% endif %}">
<td>
<div class="first-item">
<img src="{{ mp.player.avatar_s }}" class="avatar">
Expand Down

0 comments on commit ee705cb

Please sign in to comment.