{% extends "base.html" %}
{% block title %}devendra · fragment {{ id }}{% endblock %}
{% block content %}
<p class="muted"><a href="/fragments">← fragments</a></p>
<h1>{{ id }}</h1>
<div class="card">
Include from a host with:
<pre class="code">include = ["{{ include_ref }}"]</pre>
{% if used_by %}
<p class="muted">Used by:
{% for h in used_by %}<a href="/hosts/{{ h }}">{{ h }}</a>{% if not loop.last %}, {% endif %}{% endfor %}.
Editing republishes them.</p>
{% else %}
<p class="muted">Not included by any host yet.</p>
{% endif %}
</div>
{% if compile_error %}
<div class="card"><strong style="color:var(--err)">Config error</strong><pre class="code">{{ compile_error }}</pre></div>
{% else %}
{% if packages %}
<h2>Packages</h2>
<table>
<thead><tr><th>Package</th><th>State</th></tr></thead>
<tbody>
{% for p in packages %}
<tr><td><code>{{ p.name }}</code></td><td>{{ p.state }}</td></tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% if directories %}
<h2>Directories</h2>
<table>
<thead><tr><th>Path</th><th>State</th><th>Mode</th><th>Owner</th></tr></thead>
<tbody>
{% for d in directories %}
<tr><td class="break"><code>{{ d.path }}</code></td><td>{{ d.state }}</td><td>{{ d.mode }}</td><td>{{ d.owner }}</td></tr>
{% endfor %}
</tbody>
</table>
{% endif %}
<h2>Files</h2>
{% if files %}
<table>
<thead><tr><th>Path</th><th>State</th><th>Mode</th><th>Owner</th></tr></thead>
<tbody>
{% for f in files %}
<tr>
<td class="break"><code>{{ f.path }}</code></td>
<td>{{ f.state }}</td>
<td>{{ f.mode }}</td>
<td>{{ f.owner }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}<p class="muted">No files.</p>{% endif %}
<h2>Services</h2>
{% if services %}
<table>
<thead><tr><th>Unit</th><th>Enabled</th><th>State</th></tr></thead>
<tbody>
{% for s in services %}
<tr><td><code>{{ s.name }}</code></td><td>{{ s.enabled }}</td><td>{{ s.state }}</td></tr>
{% endfor %}
</tbody>
</table>
{% else %}<p class="muted">No services.</p>{% endif %}
{% endif %}
<h2>Source <a class="btn secondary" href="/fragments/{{ id }}/edit">Edit</a></h2>
<pre class="code">{{ raw }}</pre>
{% endblock %}
neiam
/devendra
public · Issues · Pulls · Labels · Forks · Compare · Actions failure · Badges · Packages
⭐
Log in to mark this repository.
2.4 KiB · text
History
e832e77