portal/storage: expose storage information via the portal
This commit is contained in:
parent
1ee75fd37f
commit
293acba317
6 changed files with 121 additions and 7 deletions
|
@ -114,7 +114,7 @@
|
|||
{{ instances_table("eotk", instances) }}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro automations_table(automations) %}
|
||||
{% macro automations_table(automations, states) %}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sm">
|
||||
<thead>
|
||||
|
@ -122,6 +122,7 @@
|
|||
<th scope="col">Description</th>
|
||||
<th scope="col">Status</th>
|
||||
<th scope="col">Enabled</th>
|
||||
<th scope="col">Storage</th>
|
||||
<th scope="col">Last Run</th>
|
||||
<th scope="col">Next Run</th>
|
||||
<th scope="col">Actions</th>
|
||||
|
@ -141,6 +142,15 @@
|
|||
{% endif %}
|
||||
</td>
|
||||
<td>{% if automation.enabled %}✅{% else %}❌{% endif %}</td>
|
||||
<td>
|
||||
{% if automation.short_name in states %}
|
||||
<a href="#" title="{{ states[automation.short_name].lock or 'Unlocked' }}" class="text-decoration-none">
|
||||
{% if states[automation.short_name].lock %}🔒{% else %}🔓{% endif %}
|
||||
</a>
|
||||
{% else %}
|
||||
<span title="No Storage">✨</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ automation.last_run | format_datetime }}</td>
|
||||
<td>{{ automation.next_run | format_datetime }}</td>
|
||||
<td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue