2026-04-27 16:47:08 -04:00
|
|
|
<div class="card">
|
2026-04-30 08:54:55 -04:00
|
|
|
{{ avatar }}
|
2026-04-27 16:47:08 -04:00
|
|
|
<div class="info">
|
2026-07-27 14:36:01 -04:00
|
|
|
{% if dehydrated %}
|
|
|
|
|
<div class="name">Dehydrated device</div>
|
|
|
|
|
{% else %}
|
|
|
|
|
<div class="name">
|
|
|
|
|
<span>
|
|
|
|
|
{% if let Some(display_name) = display_name %}
|
|
|
|
|
{{ display_name }}
|
|
|
|
|
{% else %}
|
|
|
|
|
Unknown device
|
|
|
|
|
{% endif %}
|
2026-04-30 14:55:21 -04:00
|
|
|
</span>
|
2026-07-27 14:36:01 -04:00
|
|
|
{% if style == DeviceCardStyle::Detailed %}
|
|
|
|
|
<span class="id">
|
2026-09-10 09:46:00 -04:00
|
|
|
#{{ device_id }}
|
2026-07-27 14:36:01 -04:00
|
|
|
</span>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
2026-09-10 09:46:00 -04:00
|
|
|
Last active {{ last_active }}
|
2026-07-27 14:36:01 -04:00
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
{% if style != DeviceCardStyle::Detailed %}
|
2026-11-20 13:02:47 -05:00
|
|
|
<a href="{{ crate::ROUTE_PREFIX }}/account/device/{{ device_id | urlencode_strict }}/">Details</a>
|
2026-04-30 08:54:55 -04:00
|
|
|
{% endif %}
|
2026-07-27 14:36:01 -04:00
|
|
|
</div>
|
2026-04-30 11:32:30 -04:00
|
|
|
{% endif %}
|
2026-04-27 16:47:08 -04:00
|
|
|
</div>
|
|
|
|
|
</div>
|