{% extends "base.html" %} {% block title %}{{ battery.label }} — Battery Tracker{% endblock %} {% block content %}
| Label | {{ battery.label }} |
| Brand | {{ battery.brand }} |
| Status | {{ battery.status|capitalize }} |
| Device | {% if battery.device %} {{ battery.device.name }} {% else %} None {% endif %} |
| Capacity | {{ battery.capacity_mah }} mAh {% if battery.tested_capacity_mah %} {% set pct = (battery.tested_capacity_mah / battery.capacity_mah * 100)|round|int %} {% if pct >= 80 %}{% set health_class = "health-good" %} {% elif pct >= 60 %}{% set health_class = "health-warn" %} {% else %}{% set health_class = "health-bad" %} {% endif %} → tested {{ battery.tested_capacity_mah }} mAh ({{ pct }}%) {% if battery.tested_date %}on {{ battery.tested_date }}{% endif %} {% endif %} |
| Tested Capacity | {{ battery.tested_capacity_mah }} mAh {% if battery.tested_date %}on {{ battery.tested_date }}{% endif %} |
| Notes | {{ battery.notes }} |
| Date | Capacity | {% if battery.capacity_mah %}Health | {% endif %}Notes | |
|---|---|---|---|---|
| {{ t.tested_date }} | {{ t.tested_capacity_mah }} mAh | {% if battery.capacity_mah %} {% set pct = (t.tested_capacity_mah / battery.capacity_mah * 100)|round|int %} {% if pct >= 80 %}{% set hc = "health-good" %} {% elif pct >= 60 %}{% set hc = "health-warn" %} {% else %}{% set hc = "health-bad" %}{% endif %}{{ pct }}% | {% endif %}{{ t.notes or '—' }} |
No test records yet.
{% endif %}| Date | +Cycle | Notes | |
|---|---|---|---|
| {{ log.charged_date }} | {{ '✓' if log.increment_cycles else '—' }} | {{ log.notes or '—' }} |
No charge log entries yet.
{% endif %}