generic-poky/bitbake/lib/toaster/toastergui/templates/package_included_detail.html

47 lines
1.7 KiB
HTML

{% extends "package_detail_base.html" %}
{% load projecttags %}
{% block title %}
{% with fullPackageSpec=package.name|add:"_"|add:package.version|add:"-"|add:package.revision|filtered_packagespec %}
<h1>{{fullPackageSpec}} <small>({{target.target}})</small></h1>
{% endwith %}
{% endblock title %}
{% block tabcontent %}
{% with fullPackageSpec=package.name|add:"_"|add:package.version|add:"-"|add:package.revision|filtered_packagespec packageFileCount=package.buildfilelist_package.count %}
{% include "package_included_tabs.html" with active_tab="detail" %}
<div class="tab-content">
<div class="tab-pane active" id="files">
{% if packageFileCount > 0 %}
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>File</th>
<th>Size</th>
</tr>
</thead>
<tbody>
{% for file in package.buildfilelist_package.all|dictsort:"path" %}
<tr>
<td>
<a href="{% url 'dirinfo_filepath' build.id target.id file.path %}">
{{file.path}}
</a>
</td>
<td>{{file.size|filtered_filesizeformat}}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<div class="alert alert-info">
<strong>{{fullPackageSpec}}</strong> does not generate any files.
</div>
{% endif %}
</div> <!-- end tab-pane -->
</div> <!-- end tab content -->
{% endwith %}
{% endblock tabcontent %}