xref: /openbmc/openbmc/poky/bitbake/lib/toaster/toastergui/templates/recipe_packages.html (revision c124f4f2e04dca16a428a76c89677328bc7bf908)
1{% extends "basebuilddetailpage.html" %}
2
3{% load projecttags %}
4{% load humanize %}
5{% block localbreadcrumb %}
6<li><a href="{% url 'recipes' build.pk %}">Recipes</a></li>
7<li>{{recipe.name}}_{{recipe.version}} </li>
8{% endblock %}
9
10{% block pagedetailinfomain %}
11
12<!-- Begin container -->
13
14<div class="row">
15  <div class="col-md-12">
16    <div class="page-header build-data">
17        <h1>{{recipe.name}}_{{recipe.version}}</h1>
18    </div>
19  </div>
20</div>
21
22<div class="row">
23  <div class="col-md-8 tabbable">
24    <ul class="nav nav-tabs">
25        <li>
26            <a href="{% url "recipe" build.pk recipe.id "1" %}">
27                <span class="glyphicon glyphicon-question-sign get-help" title="Build-related
28                    information about the recipe"></span>
29                Recipe details
30            </a>
31        </li>
32        <li class="active">
33          <a href="#packages-built" data-toggle="tab">
34                <span class="glyphicon glyphicon-question-sign get-help" title="The packaged
35                    output resulting from building the recipe"></span>
36                Packages ({{object_count}})
37            </a>
38        </li>
39        <li>
40            <a href="{% url "recipe" build.pk recipe.id "3" %}">
41                <span class="glyphicon glyphicon-question-sign get-help" title="The recipe
42                    build-time dependencies (i.e. other recipes)"></span>
43                Build dependencies ({{recipe.r_dependencies_recipe.all.count}})
44            </a>
45        </li>
46        <li>
47            <a href="{% url "recipe" build.pk recipe.id "4" %}">
48                <span class="glyphicon glyphicon-question-sign get-help" title="The recipe
49                    build-time reverse dependencies (i.e. the recipes that
50                    depend on this recipe)"></span>
51                Reverse build dependencies ({{recipe.r_dependencies_depends.all.count}})
52            </a>
53        </li>
54    </ul>
55    <div class="tab-content">
56{#        <div class="tab-pane active" id="packages-built" name="packages-built">#}
57       <div class="tab-pane active" id="packages-built">
58            {% if not objects and not request.GET.search %}
59            <div class="alert alert-info">
60                <strong>{{recipe.name}}_{{recipe.version}}</strong> does not build any packages.
61            </div>
62
63            {% elif not objects %}
64                {# have empty search results, no table nor pagination #}
65                {% with "packages" as search_what %}
66                {% include "detail_search_header.html" %}
67                {% endwith %}
68
69            {% else %}
70
71
72                {% with "packages" as search_what %}
73                {% include "detail_search_header.html" %}
74                {% endwith %}
75            <table class="table table-bordered table-hover tablesorter" id="otable">
76                {% include "detail_sorted_header.html" %}
77
78                <tbody>
79                    {% for package in objects %}
80
81                    <tr>
82                        <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td>
83                        <td>{{package.version}}_{{package.revision}}</td>
84                        <td class="sizecol">{{package.size|filtered_filesizeformat}}</td>
85                    </tr>
86
87                        {% endfor %}
88
89            {% endif %}
90            {% if objects %}
91                </tbody>
92            </table>
93                {% include "detail_pagination_bottom.html" %}
94            {% endif %}
95        </div> {# tab-pane #}
96    </div> {# tab-content #}
97</div> {# col-md-8 #}
98
99<div class="col-md-4">
100  <div class="well">
101    <h2>About {{recipe.name}}</h2>
102    <dl class="item-info">
103        {% if recipe.summary %}
104            <dt>Summary</dt>
105            <dd>{{recipe.summary}}</dd>
106        {% endif %}
107        {% if recipe.description %}
108            <dt>Description</dt>
109            <dd>{{recipe.description}}</dd>
110        {% endif %}
111        {% if recipe.homepage %}
112            <dt>Homepage</dt>
113            <dd><a href="{{recipe.homepage}}">{{recipe.homepage}}</a></dd>
114        {% endif %}
115        {% if recipe.bugtracker %}
116            <dt>Bugtracker</dt>
117            <dd><a href="{{recipe.bugtracker}}">{{recipe.bugtracker}}</a></dd>
118        {% endif %}
119        {% if recipe.section %}
120            <dt>
121            Section
122            <i class="icon-question-sign get-help" title="The section in which recipes should be categorized"></i>
123            </dt>
124            <dd>{{recipe.section}}</dd>
125        {% endif %}
126        {% if recipe.license %}
127            <dt>License</dt>
128            <dd>{{recipe.license}}</dd>
129        {% endif %}
130    </dl>
131  </div>
132</div>
133
134</div> <!-- end row -->
135{% endblock pagedetailinfomain %}
136