aboutsummaryrefslogtreecommitdiffstats
path: root/templates/layerindex/recipedetail.html
blob: 4164f11513543c28d1bb4b0bf6856d9bc4812430 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
{% extends "base.html" %}
{% load i18n %}

{% comment %}

  layerindex-web - recipe detail page template

  Copyright (C) 2013 Intel Corporation
  Licensed under the MIT license, see COPYING.MIT for details

{% endcomment %}


<!--
{% autoescape on %}
{% block title_append %} - {{ recipe.pn }}{% endblock %}
{% endautoescape %}
-->

{% block content %}
{% autoescape on %}

        <ul class="breadcrumb">
            <li><a href="{% url 'layer_list' recipe.layerbranch.branch.name %}">{{ recipe.layerbranch.branch.name }}</a> <span class="divider">&rarr;</span></li>
            <li><a href="{% url 'layer_item' recipe.layerbranch.branch.name recipe.layerbranch.layer.name %}">{{ recipe.layerbranch.layer.name }}</a> <span class="divider">&rarr;</span></li>
            <li class="active">{{ recipe.name }}</li>
        </ul>

       <div class="container-fluid">
        <div class="row-fluid">

            <div class="page-header">
                <h1>{{ recipe.name }} {{ recipe.pv }} {% if recipe.blacklisted %} <span class="label label-inverse valign-middle">blacklisted</span> {% endif %}</h1>
            </div>

            {% if recipe.blacklisted %}
                <div class="alert">
                    <div class="row-fluid">
                        <p>This recipe is <strong>blacklisted</strong> by the <a href="{% url 'layer_item' recipe.layerbranch.branch.name recipe.layerbranch.layer.name %}">{{ recipe.layerbranch.layer.name }}</a> layer. The reason provided is:</p>
                        <blockquote class="span7 warn">
                            <p>{{ recipe.blacklisted }}</p>
                        </blockquote>
                    </div>
                </div>
            {% endif %}

                <table class="table table-striped table-bordered">
                    <tbody>
                        <tr>
                            <th>Name</th>
                            <td>{{ recipe.name }}</td>
                        </tr>
                        <tr>
                            <th>Version</th>
                            <td>{{ recipe.pv }}</td>
                        </tr>
                        <tr>
                            <th>Summary</th>
                            <td>{{ recipe.summary }}</td>
                        </tr>
                        <tr>
                            <th>Description</th>
                            <td>{{ recipe.description }}</td>
                        </tr>
                        <tr>
                            <th>Section</th>
                            <td>{{ recipe.section }}</td>
                        </tr>
                        <tr>
                            <th>License</th>
                            <td>{{ recipe.license }}</td>
                        </tr>
                        <tr>
                            <th>Homepage</th>
                            <td>
                                {% if recipe.homepage_url_only %}
                                    <a href="{{ recipe.homepage }}">{{ recipe.homepage }}</a>
                                {% elif recipe.homepage %}
                                    {{ recipe.homepage }}
                                {% endif %}
                            </td>
                        </tr>
                        {% if recipe.bugtracker %}
                        <tr>
                            <th>Bug tracker</th>
                            <td><a href="{{ recipe.bugtracker }}">{{ recipe.bugtracker }}</a></td>
                        </tr>
                        {% endif %}
                        <tr>
                            <th>Recipe file</th>
                            <td>
                                {% if recipe.vcs_web_url %}
                                    <a href="{{ recipe.vcs_web_url }}">{{ recipe.full_path }}</a>
                                {% else %}
                                    {{ recipe.full_path }}
                                {% endif %}
                            </td>
                        </tr>
                        <tr>
                            <th>Layer</th>
                            <td><a href="{% url 'layer_item' recipe.layerbranch.branch.name recipe.layerbranch.layer.name %}">{{ recipe.layerbranch.layer.name }}</a> ({{ recipe.layerbranch.branch.name}} branch)</td>
                        </tr>
                        <tr>
                            <th>Inherits</th>
                            <td>
                                {% if recipe.inherits %}
                                    <ul class="unstyled">
                                        {% for recipe in recipe.inherits.split %}
                                            <li>{{ recipe }}</li>
                                        {% endfor %}
                                    </ul>
                                {% endif %}
                            </td>
                        </tr>
                        <tr>
                            <th>Dependencies <i class="icon-exclamation-sign" data-toggle="tooltip" title="NOTE: Dependencies may vary based on configuration"></i></th>
                            <td>
                                {% if staticdependencies %}
                                    <ul class="unstyled">
                                        {% for dep in staticdependencies %}
                                            <li> {{dep.name}} </li>
                                        {% endfor %}
                                    </ul>
                                {% endif %}
                                {% if packageconfigs %}
                                    <ul class="unstyled">
                                        {% for pc in packageconfigs %}
                                            {% for dep in pc.dynamicbuilddep_set.all %}
                                            <li> {{dep.name}}<i class="icon-cog" data-toggle="tooltip" title="If &quot;{{pc.feature}}&quot; is set in PACKAGECONFIG"></i></li>
                                            {% endfor %}
                                        {% endfor %}
                                    </ul>
                                {% endif %}
                            </td>
                        </tr>
                        <tr>
                            <th>PACKAGECONFIG options</th>
                            <td>
                                {% if packageconfigs %}
                                    <ul class="unstyled">
                                        {% for pc in packageconfigs %}
                                            <li> {{ pc.feature }} </li>
                                        {% endfor %}
                                    </ul>
                                {% endif %}
                            </td>
                        </tr>
                    </tbody>
                </table>

                {% if appends %}
                <h2>bbappends</h2>
                <p>This recipe is appended by:</p>
                <table class="table table-bordered">
                {% for append in verappends %}
                    <tr>
                        <td>
                            <a href="{% url 'layer_item' append.layerbranch.branch.name append.layerbranch.layer.name %}">{{ append.layerbranch.layer.name }}</a>
                        </td>
                        <td>
                            <a href="{{ append.vcs_web_url }}">{{ append.filename }}</a>
                        </td>
                    </tr>
                {% endfor %}
                {% for append in appends %}
                    {% if not append in verappends %}
                    <tr>
                        <td>
                            <a href="{% url 'layer_item' append.layerbranch.branch.name append.layerbranch.layer.name %}" class="muted">{{ append.layerbranch.layer.name }}</a>
                        </td>
                        <td>
                            <a href="{{ append.vcs_web_url }}" class="muted">{{ append.filename }}</a>
                        </td>
                    </tr>
                    {% endif %}
                {% endfor %}
                </table>
                {% endif %}
            </div>
        </div>

{% endautoescape %}

{% endblock %}

{% block scripts %}
    <script>
        $(document).ready(function() {
            $('[data-toggle="tooltip"]').tooltip();
        });
    </script>
{% endblock %}