blob: 65e6c4a07b06c7c68a9ddda9003cf418fb7428e5 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001{% extends "basebuildpage.html" %}
2{% block localbreadcrumb %}
3<li>{{target.target}}</li>
4{% endblock localbreadcrumb%}
5
6{% load projecttags %}
7
8{% block nav-target %}
9 {% for t in build.get_sorted_target_list %}
10 {% ifequal target.pk t.pk %}
11 <li class="active"><a href="{% url 'target' build.pk t.pk %}">{{t.target}}</a><li>
12 {% else %}
13 <li><a href="{% url 'target' build.pk t.pk %}">{{t.target}}</a><li>
14 {% endifequal %}
15 {% endfor %}
16{% endblock %}
17
18{% block buildinfomain %}
19
20<div class="row-fluid span10">
21 <div class="page-header">
22 <h1>
23 {% if request.GET.search and objects.paginator.count > 0 %}
24 {{objects.paginator.count}} package{{objects.paginator.count|pluralize}} found
25 {% elif request.GET.search and objects.paginator.count == 0 %}
26 No packages found
27 {% else %}
28 {{target.target}}
29 {% endif %}
30 </h1>
31 </div>
32</div>
33
34<div class="row-fluid pull-right span10" id="navTab">
35 <ul class="nav nav-pills">
36 <li class="active">
37 <a href="#target">
38 <i class="icon-question-sign get-help" title="Of all the packages built, the subset installed in the root file system of this image"></i>
39 Packages included ({{target.package_count}} - {{packages_sum|filtered_filesizeformat}})
40 </a>
41 </li>
42 <li>
43 <a href="{% url 'dirinfo' build.id target.id %}">
44 <i class="icon-question-sign get-help" title="The directories and files in the root file system of this image"></i>
45 Directory structure
46 </a>
47 </li>
48 </ul>
49
50 <div id="image-packages" class="tab-pane">
51
52 {% if objects.paginator.count == 0 %}
53 <div class="row-fluid">
54 <div class="alert">
55 <form class="no-results input-append" id="searchform">
56 <input id="search" name="search" class="input-xxlarge" type="text" value="{% if request.GET.search %}{{request.GET.search}}{% endif %}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %}
57 <button class="btn" type="submit" value="Search">Search</button>
58 <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all packages</button>
59 </form>
60 </div>
61 </div>
62
63
64 {% else %}
65 {% include "basetable_top.html" %}
66 {% for package in objects %}
67 <tr>
68 {# order of the table data must match the columns defined in template's context tablecols #}
69 <td class="package_name">
70 <a href="{% url 'package_included_detail' build.id target.id package.id %}">
71 {{package.name}}
72 </a>
73 {% if package.installed_name and package.name != package.installed_name %}
74 <span class="muted"> as {{package.installed_name}}</span>
75 <i class="icon-question-sign get-help hover-help" title='{{package.name|add:" was renamed at packaging time and was installed in your image as "|add:package.installed_name}}'></i>
76 {% endif %}
77 </td>
78 <td class="package_version">
79 <a href="{% url 'package_included_detail' build.id target.id package.id %}">
80 {{package.version|filtered_packageversion:package.revision}}
81 </a>
82 </td>
83 <td class="license">
84 {{package.license}}
85 </td>
86 <td class="size sizecol">
87 {{package.size|filtered_installedsize:package.installed_size|filtered_filesizeformat}}
88 </td>
89
90 <td class="size_over_total sizecol">
91 {{package|filter_sizeovertotal:packages_sum}}
92 </td>
93 <td class="depends">
94 {% with deps=package.runtime_dependencies %}
95 {% with deps_count=deps|length %}
96 {% if deps_count > 0 %}
97 <a class="btn"
98 title="<a href='{% url "package_included_dependencies" build.id target.id package.id %}'>{{package.name}}</a> dependencies"
99 data-content="<ul class='unstyled'>
100 {% for i in deps|dictsort:'depends_on.name' %}
101 <li><a href='{% url "package_included_detail" build.pk target.id i.depends_on.pk %}'>{{i.depends_on.name}}</a></li>
102 {% endfor %}
103 </ul>">
104 {{deps_count}}
105 </a>
106 {% endif %}
107 {% endwith %}
108 {% endwith %}
109 </td>
110 <td class="brought_in_by">
111 {% with rdeps=package.reverse_runtime_dependencies %}
112 {% with rdeps_count=rdeps|length %}
113 {% if rdeps_count > 0 %}
114 <a class="btn"
115 title="<a href='{% url "package_included_reverse_dependencies" build.id target.id package.id %}'>{{package.name}}</a> reverse dependencies"
116 data-content="<ul class='unstyled'>
117 {% for i in rdeps|dictsort:'package.name' %}
118 <li><a href='{% url "package_included_detail" build.id target.id i.package.id %}'>{{i.package.name}}</a></li>
119 {% endfor %}
120 </ul>">
121 {{rdeps_count}}
122 </a>
123 {% endif %}
124 {% endwith %}
125 {% endwith %}
126 </td>
127 <td class="recipe_name">
128 {% if package.recipe.version %}
129 <a href="{% url 'recipe' build.id package.recipe_id %}">
130 {{ package.recipe.name }}
131 </a>
132 {% endif %}
133 </td>
134 <td class="recipe_version">
135 {% if package.recipe.version %}
136 <a href="{% url 'recipe' build.id package.recipe_id %}">
137 {{ package.recipe.version }}
138 </a>
139 {% endif %}
140 </td>
141 <td class="layer_name">
142 {{ package.recipe.layer_version.layer.name }}
143 </td>
144 <td class="layer_branch">
145 {{ package.recipe.layer_version.branch}}
146 </td>
147 <td class="layer_commit">
148 <a class="btn"
149 data-content="<ul class='unstyled'>
150 <li>{{package.recipe.layer_version.commit}}</li>
151 </ul>">
152 {{package.recipe.layer_version.commit|truncatechars:13}}
153 </a>
154 </td>
155 </tr>
156 {% endfor %}
157
158 {% include "basetable_bottom.html" %}
159 {% endif %}
160 </div> <!-- tabpane -->
161</div> <!--span 10-->
162{% endblock buildinfomain %}