blob: a5d5893571957e14f9749cbf344036c98fb0e70a [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001{% extends "package_detail_base.html" %}
2{% load projecttags %}
3
4{% block tabcontent %}
Patrick Williamsc0f7c042017-02-23 20:41:17 -06005 <ul class="nav nav-tabs">
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006 <li class="">
7 <a href="{% url 'package_built_detail' build.id package.id %}">
Patrick Williamsc0f7c042017-02-23 20:41:17 -06008 <span class="glyphicon glyphicon-question-sign get-help" title="Shows the files produced by this package."></span>
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009 Generated files ({{package.buildfilelist_package.count}})
10 </a>
11 </li>
12 <li class="active">
13 <a href="{% url 'package_built_dependencies' build.id package.id %}">
Patrick Williamsc0f7c042017-02-23 20:41:17 -060014 <span class="glyphicon glyphicon-question-sign get-help" title="Shows the runtime packages required by this package."></span>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015 Runtime dependencies ({{dependency_count}})
16 </a>
17 </li>
18 </ul>
19 <div class="tab-content">
20 <div class="tab-pane active" id="dependencies">
21 {% ifequal runtime_deps|length 0 %}
22 <div class="alert alert-info">
23 <strong>{{package.fullpackagespec}}</strong> has no runtime dependencies.
24 </div>
25 {% else %}
26 <div class="alert alert-info">
Patrick Williamsc0f7c042017-02-23 20:41:17 -060027 <strong>{{package.fullpackagespec}}</strong> is <strong>not included</strong> in any image. This page shows you the projected runtime dependencies if you were to include <strong>{{package.fullpackagespec}}</strong> in an image.
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028 </div>
29 <table class="table table-bordered table-hover">
30 <thead>
31 <tr>
32 <th>Package</th>
33 <th>Version</th>
Patrick Williamsc0f7c042017-02-23 20:41:17 -060034 <th class="sizecol col-md-2">Size</th>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050035 </tr>
36 </thead>
37 <tbody>
38 {% for runtime_dep in runtime_deps %}
39 <tr {{runtime_dep.size|format_vpackage_rowclass}} >
40 {% if runtime_dep.size != -1 %}
41 <td>
42 <a href="{% url 'package_built_detail' build.id runtime_dep.depends_on_id %}">
43 {{runtime_dep.name}}
44 </a>
45 </td>
46 {% else %}
47 <td>
48 {{runtime_dep.name|format_vpackage_namehelp}}
49 </td>
50 {% endif %}
51 <td>{{runtime_dep.version}}</td>
52 <td class="sizecol">{{runtime_dep.size|filtered_filesizeformat}}</td>
53 </tr>
54 {% endfor %}
55 </tbody>
56 </table>
57 {% endifequal %}
58 {% ifnotequal other_deps|length 0 %}
59 <h3>Other runtime relationships</h3>
60 <table class="table table-bordered table-hover">
61 <thead>
62 <tr>
63 <th>Package</th>
64 <th>Version</th>
Patrick Williamsc0f7c042017-02-23 20:41:17 -060065 <th class="sizecol col-md-2">Size</th>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050066 <th>
Patrick Williamsc0f7c042017-02-23 20:41:17 -060067 <span class="glyphicon glyphicon-question-sign get-help" title="Five relationship types exist: recommends, suggests, provides, replaces and conflicts"></span>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050068 Relationship type
69 </th>
70 </tr>
71 </thead>
72 <tbody>
73 {% for other_dep in other_deps %}
74 <tr {{other_dep.size|format_vpackage_rowclass}} >
75 {% if other_dep.size != -1 %}
76 <td>
77 <a href="{% url 'package_built_detail' build.id other_dep.depends_on_id %}">
78 {{other_dep.name}}
79 </a>
80 </td>
81 {% else %}
82 <td>
83 {{other_dep.name|format_vpackage_namehelp}}
84 </td>
85 {% endif %}
86 <td>{{other_dep.version}}</td>
87 <td class="sizecol">{{other_dep.size|filtered_filesizeformat}}</td>
88 <td>
89 {{other_dep.dep_type_display}}
Patrick Williamsc0f7c042017-02-23 20:41:17 -060090 <span class="glyphicon glyphicon-question-sign get-help hover-help" title="{{other_dep.dep_type_help}}" ></span>
Patrick Williamsc124f4f2015-09-15 14:41:29 -050091 </td>
92 </tr>
93 {% endfor %}
94 </tbody>
95 </table>
96 {% endifnotequal %}
97 </div> <!-- tab-pane -->
98 </div> <!-- tab-content -->
99{% endblock tabcontent %}