Advanced event types
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
{% endif %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="col-sm-4">
|
||||
|
||||
<!--region Info Card-->
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<span class="font-weight-bold">Enemies Defeated:</span>
|
||||
{{ 0 }}
|
||||
{{ model.victories|length or 0 }}
|
||||
</li>
|
||||
<li class="list-group-item">
|
||||
<span class="font-weight-bold">Deaths:</span>
|
||||
@@ -59,8 +59,6 @@
|
||||
|
||||
<!--endregion-->
|
||||
|
||||
<hr>
|
||||
|
||||
<!--region Player Card-->
|
||||
|
||||
<div class="card">
|
||||
@@ -72,12 +70,14 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="col-sm-auto text-center">Name</th>
|
||||
<th scope="col" class="col-sm-auto text-center">Playtime</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for player in model.players %}
|
||||
<tr>
|
||||
<td class="col-sm-auto text-center">{{ player.name }}</td>
|
||||
<td class="col-sm-auto text-center">{{ "0m" }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
@@ -89,7 +89,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="col-sm-8">
|
||||
|
||||
<!--region Deaths Card-->
|
||||
|
||||
@@ -130,6 +130,45 @@
|
||||
|
||||
<!--endregion-->
|
||||
|
||||
<!--region Victories Card-->
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header text-center">
|
||||
Victories
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
||||
{% if model.victories %}
|
||||
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="col-xs-auto text-center">Time</th>
|
||||
<th scope="col" class="col-xs text-center">Enemy</th>
|
||||
<th scope="col" class="col-xs text-center">Player</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for entry in model.victories %}
|
||||
<tr>
|
||||
<td class="col-xs-auto text-center">{{ entry.time|format_time }}</td>
|
||||
<td class="col-xs text-center">{{ entry.enemy.name }}</td>
|
||||
<td class="col-xs text-center">{{ entry.player.name }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% else %}
|
||||
|
||||
<div class="alert alert-info">No Enemies were defeated</div>
|
||||
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--endregion-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user