mirror of
https://github.com/godotengine/godot-showreel-voting.git
synced 2026-09-03 18:15:13 +03:00
add total submission count
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
{% if metrics.total_votes == 0 %}
|
<div>
|
||||||
<p>No voting data available for this showreel yet.</p>
|
<p>Total submissions: <strong>{{ metrics.results | length }}</strong></p>
|
||||||
{% else %}
|
{% if metrics.total_votes == 0 %}
|
||||||
<div>
|
<p>No voting data available for this showreel yet.</p>
|
||||||
|
{% else %}
|
||||||
<p>Total votes: <strong>{{ metrics.total_votes }}</strong></p>
|
<p>Total votes: <strong>{{ metrics.total_votes }}</strong></p>
|
||||||
<p>Positive votes: <strong>{{ metrics.positive_votes }}</strong></p>
|
<p>Positive votes: <strong>{{ metrics.positive_votes }}</strong></p>
|
||||||
<p>Negative votes: <strong>{{ metrics.total_votes - metrics.positive_votes }}</strong></p>
|
<p>Negative votes: <strong>{{ metrics.total_votes - metrics.positive_votes }}</strong></p>
|
||||||
</div>
|
{% endif %}
|
||||||
|
</div>
|
||||||
<br>
|
<br>
|
||||||
{% endif %}
|
|
||||||
<div>
|
<div>
|
||||||
<div class="entries">
|
<div class="entries">
|
||||||
{% for entry in metrics.results %}
|
{% for entry in metrics.results %}
|
||||||
|
|||||||
Reference in New Issue
Block a user