summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/package_included_detail.html
blob: e89ebdf58c50e12d30d26c332c9651a3b8b2c2bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{% extends "package_detail_base.html" %}
{% load projecttags %}

{% block title %}
        <h1>
            {{package.fullpackagespec}}
            <script>
                fmtAliasHelp("{{package.name}}", "{{package.alias}}", false)
            </script>
            <small>({{target.target}})</small>
        </h1>
{% endblock title %}

{% block tabcontent %}
{% with 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>{{package.fullpackagespec}}</strong> does not generate any files.
            </div>
            {% endif %}
        </div> <!-- end tab-pane -->
    </div> <!-- end tab content -->

{% endwith %}
{% endblock tabcontent %}