forked from home-assistant/alerts.home-assistant.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
30 lines (30 loc) · 1.06 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
layout: base
title: Alerts
---
<div>
{%- for alert in collections.sortedAlertsByUpdate -%}
<a href="{{ alert.url }}">
<div class="alert-card">
<h2>{{ alert.data.title }}</h2>
<div class="alert-card-footer">
<div class="date">
<span class="unformated-date">{{ alert.data.created }}</span>
{% if alert.data.updated %} (Updated: <span class="unformated-date">{{ alert.data.updated }}</span>){% endif %}
</div>
{%- for integration in alert.data.integrations -%}
<div class="integration">
<img class="integration-logo" src="https://brands.home-assistant.io/_/{{ integration }}/icon.png" />
{{ integration }}
</div>
{%- endfor -%}
{%- for package in alert.data.packages -%}
<div class="package">
{{ package }}
</div>
{%- endfor -%}
</div>
</div>
</a>
{%- endfor -%}
</div>