blob: aa0610434f3a9b89ccc2644c5cea460e2c0f63b2 (
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
|
{% extends "basebuildpage.html" %}
{% load projecttags %}
{% block localbreadcrumb %}
<li>Recipes</li>
{% endblock %}
{% block buildinfomain %}
<div class="span10">
<div class="page-header" style="margin-top:40px;">
<h1>
{% if request.GET.filter or request.GET.search and objects.count > 0 %}
{{objects.paginator.count}} recipe{{objects.paginator.count|pluralize}} found
{%elif objects.paginator.count == 0%}
No Recipes
{%else%}
Recipes
{%endif%}
</h1>
</div>
{% include "basetable_top.html" %}
{% for recipe in objects %}
<tr class="data">
<td><a href="{% url "recipe" build.pk recipe.pk %}">{{recipe.name}}</a></td>
<td><a href="{% url "recipe" build.pk recipe.pk %}">{{recipe.version}}</a></td>
<!-- Depends -->
<td class="depends_on">
{% if recipe.r_dependencies_recipe.all.count %}
<a class="btn"
title="<a href='{% url "recipe" build.pk recipe.pk %}#dependencies'>{{recipe.name}}</a> depends on"
data-content="<ul class='unstyled'>
{% for i in recipe.r_dependencies_recipe.all|dictsort:"depends_on.name"%}
<li><a href='{% url "recipe" build.pk i.depends_on.pk %}'>{{i.depends_on.name}}</a></li>
{% endfor %}
</ul>">
{{recipe.r_dependencies_recipe.all.count}}
</a>
{% endif %}
</td>
<!-- Brought in by -->
<td class="depends_by">
{% if recipe.r_dependencies_depends.all.count %}
<a class="btn"
title="<a href='{% url "recipe" build.pk recipe.pk %}#brought-in-by'>{{recipe.name}}</a> is brought in by"
data-content="<ul class='unstyled'>
{% for i in recipe.r_dependencies_depends.all|dictsort:"recipe.name"%}
<li><a href='{% url "recipe" build.pk i.recipe.pk %}'>{{i.recipe.name}}</a></li>
{% endfor %}
</ul>">
{{recipe.r_dependencies_depends.all.count}}
</a>
{% endif %}
</td>
<!-- Recipe file -->
<td class="recipe_file">{{recipe.file_path}}</td>
<!-- Section -->
<td class="recipe_section">{{recipe.section}}</td>
<!-- License -->
<td class="recipe_license">{{recipe.license}}</td>
<!-- Layer -->
<td class="layer_version__layer__name">{{recipe.layer_version.layer.name}}</td>
<!-- Layer branch -->
<td class="layer_version__branch">{{recipe.layer_version.branch}}</td>
<!-- Layer commit -->
<td class="layer_version__layer__commit">
<a class="btn"
data-content="<ul class='unstyled'>
<li>{{recipe.layer_version.commit}}</li>
</ul>">
{{recipe.layer_version.commit|truncatechars:13}}
</a>
</td>
<!-- Layer directory -->
<td class="layer_version__layer__local_path">{{recipe.layer_version.layer.local_path}}</td>
</tr>
{% endfor %}
{% include "basetable_bottom.html" %}
</div>
{% endblock %}
|