summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/bpackage.html
blob: 77f789484c4e98d875e28bc4b9a5ae7d0e99e967 (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
{% extends "basebuildpage.html" %}

{% load projecttags %}

{% block localbreadcrumb %}
<li>Packages</li>
{% endblock %}

{% block nav-packages %}
  <li class="active"><a href="{% url 'packages' build.pk %}">Packages</a></li>
{% endblock %}

{% block buildinfomain %}
<div class="span10">
<div class="page-header">
<h1>
  {% if request.GET.search and objects.paginator.count > 0  %}
      {{objects.paginator.count}} package{{objects.paginator.count|pluralize}} found
  {%elif request.GET.search and objects.paginator.count == 0%}
      No packages found
  {%else%}
      Packages
  {%endif%}
 </h1>
</div>

{% if objects.paginator.count == 0 %}
  <div class="row-fluid">
      <div class="alert">
        <form class="no-results input-append" id="searchform">
            <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %}
            <button class="btn" type="submit" value="Search">Search</button>
            <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all packages</button>
        </form>
      </div>
  </div>

{% else %}
{% include "basetable_top.html" %}

    {% for package in objects %}

    <tr class="data">

        <!-- Package -->
        <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td>
        <!-- Package Version -->
        <td>{%if package.version%}<a href="{% url "package_built_detail" build.pk package.pk %}">{{package.version}}-{{package.revision}}</a>{%endif%}</td>
        <!-- Package Size -->
        <td class="size">{{package.size|filtered_filesizeformat}}</td>
        <!-- License -->
        <td class="license">{{package.license}}</td>

        {%if package.recipe%}
            <!-- Recipe -->
            <td class="recipe__name"><a href="{% url "recipe" build.pk package.recipe.pk %}">{{package.recipe.name}}</a></td>
            <!-- Recipe Version -->
            <td class="recipe__version"><a href="{% url "recipe" build.pk package.recipe.pk %}">{{package.recipe.version}}</a></td>

            <!-- Layer -->
            <td class="recipe__layer_version__layer__name">{{package.recipe.layer_version.layer.name}}</td>
            <!-- Layer branch -->
            <td class="recipe__layer_version__branch">{{package.recipe.layer_version.branch}}</td>
            <!-- Layer commit -->
            <td class="recipe__layer_version__layer__commit">
                <a class="btn"
                    data-content="<ul class='unstyled'>
                      <li>{{package.recipe.layer_version.commit}}</li>
                    </ul>">
                    {{package.recipe.layer_version.commit|truncatechars:13}}
                </a>
            </td>
            <!-- Layer directory -->
            <td class="recipe__layer_version__layer__local_path">{{package.recipe.layer_version.layer.local_path}}</td>
        {%else%}
            <td class="recipe__name"></td>
            <td class="recipe__version"></td>
            <td class="recipe__layer_version__layer__name"></td>
            <td class="recipe__layer_version__branch"></td>
            <td class="recipe__layer_version__layer__commit"></td>
            <td class="recipe__layer_version__layer__local_path"></td>
        {%endif%}

    </tr>
    {% endfor %}

{% include "basetable_bottom.html" %}
{% endif %}
</div>
{% endblock %}