feat: show matching season context in player results
This commit is contained in:
@ -52,6 +52,23 @@
|
||||
<li>
|
||||
<a href="{% url 'scouting:player_detail' player.id %}">{{ player.full_name }}</a>
|
||||
({{ player.position }})
|
||||
{% if player.matching_context %}
|
||||
<div>
|
||||
Match context:
|
||||
{{ player.matching_context.season.name }}
|
||||
| Team: {{ player.matching_context.team.name|default:"-" }}
|
||||
| Competition: {{ player.matching_context.competition.name|default:"-" }}
|
||||
</div>
|
||||
{% if player.matching_context.stats %}
|
||||
<div>
|
||||
PTS {{ player.matching_context.stats.points|default:"-" }} |
|
||||
AST {{ player.matching_context.stats.assists|default:"-" }} |
|
||||
STL {{ player.matching_context.stats.steals|default:"-" }} |
|
||||
TOV {{ player.matching_context.stats.turnovers|default:"-" }} |
|
||||
BLK {{ player.matching_context.stats.blocks|default:"-" }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% empty %}
|
||||
<li>No players found.</li>
|
||||
|
||||
Reference in New Issue
Block a user