Anki/rslib/src/stats/card_stats.html
Damien Elmes b51f03085e migrate card stats to backend
Currently this renders the HTML directly like the previous Python
implementation - doing it in JS would probably make more sense in the
future.
2020-06-15 17:22:16 +10:00

34 lines
993 B
HTML

<table class="card-stats" width="100%">
{% for row in stats %}
<tr>
<td align="left" style="padding-right: 3px;">
<b>{{ row.0 }}</b>
</td>
<td>{{ row.1 }}</td>
</tr>
{% endfor %}
</table>
{% if !revlog.is_empty() %}
<table class="review-log" width="100%">
<tr>
<th>{{ revlog_titles.time }}</th>
<th align="right">{{ revlog_titles.kind }}</th>
<th align="center">{{ revlog_titles.rating }}</th>
<th>{{ revlog_titles.interval }}</th>
<th align="right">{{ revlog_titles.ease }}</th>
<th align="right">{{ revlog_titles.taken_secs }}</th>
</tr>
{% for entry in revlog %}
<tr>
<td>{{ entry.time|safe }}</td>
<td align="right" class="{{ entry.kind_class }}">{{ entry.kind }}</td>
<td align="center" class="{{ entry.rating_class }}">{{ entry.rating }}</td>
<td>{{ entry.interval }}</td>
<td align="right">{{ entry.ease }}</td>
<td align="right">{{ entry.taken_secs }}</td>
</tr>
{% endfor %}
</table>
{% endif %}