Files
Assetmanager/app/templates/software_packages.html
T

51 lines
2.2 KiB
HTML
Executable File

{% extends 'base.html' %}
{% block content %}
<div class="toolbar">
<div>
<h1>{{ t('software_packages.title') }}</h1>
<p class="muted">{{ t('software_packages.subtitle') }}</p>
</div>
<div class="setup-analyzer-actions">
<a class="button" href="/software/setup-analyzer">{{ t('software_packages.new_from_analyzer') }}</a>
<a class="button button-secondary" href="/software">{{ t('setup_analyzer.back_to_software') }}</a>
</div>
</div>
<section class="panel">
<div class="table-scroll management-table-scroll">
<table class="data-table" data-storage-key="software-packages">
<thead>
<tr>
<th>{{ t('software.package') }}</th>
<th>{{ t('setup_analyzer.version') }}</th>
<th>{{ t('setup_analyzer.manufacturer') }}</th>
<th>{{ t('setup_analyzer.architecture') }}</th>
<th>{{ t('software_packages.installer_type') }}</th>
<th>{{ t('software_packages.storage') }}</th>
<th>{{ t('software_packages.status') }}</th>
<th>{{ t('jobs.actions') }}</th>
</tr>
</thead>
<tbody>
{% for row in package_rows %}
{% set package = row.package %}
{% set manifest = row.manifest %}
<tr>
<td><a href="/software/packages/{{ package.id }}"><strong>{{ package.name }}</strong></a></td>
<td>{{ manifest.version or '—' }}</td>
<td>{{ manifest.vendor or '—' }}</td>
<td>{{ manifest.architecture or '—' }}</td>
<td>{{ manifest.installer_type or '—' }}</td>
<td>{{ human_size(row.storage_size) }}</td>
<td>{% if row.storage_error %}<span class="job-status job-status-failed">{{ t('software_packages.storage_error') }}</span>{% elif package.enabled %}<span class="job-status job-status-success">{{ t('software_packages.enabled') }}</span>{% else %}<span class="job-status">{{ t('software_packages.disabled') }}</span>{% endif %}</td>
<td><a class="button button-secondary button-small" href="/software/packages/{{ package.id }}">{{ t('software.open') }}</a></td>
</tr>
{% else %}
<tr><td colspan="8">{{ t('software_packages.none') }}</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</section>
{% endblock %}