Initial setup
This commit is contained in:
40
templates/apps_table.html
Normal file
40
templates/apps_table.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<div class="muted">Generated at: {{ data.generated_at }}</div>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>App</th>
|
||||
<th>URLs</th>
|
||||
<th>Running</th>
|
||||
<th>CPU</th>
|
||||
<th>RAM</th>
|
||||
<th>Dokku status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for r in data.apps %}
|
||||
<tr>
|
||||
<td><strong>{{ r.app }}</strong></td>
|
||||
<td>
|
||||
{% if r.urls %}
|
||||
{% for u in r.urls %}
|
||||
<div><a href="{{ u }}">{{ u }}</a></div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<span class="muted">—</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ r.running or "—" }}</td>
|
||||
<td>{{ r.cpu or "—" }}</td>
|
||||
<td>
|
||||
{% if r.mem_used %}
|
||||
{{ r.mem_used }} / {{ r.mem_limit }} ({{ r.mem_pct }})
|
||||
{% else %}
|
||||
—
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="muted">{{ r.status_web_1 or "—" }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user