Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | {% extends "basebuildpage.html" %} |
| 2 | |
| 3 | {% load projecttags %} |
| 4 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 5 | {% block title %} Packages built - {{build.target_set.all|dictsort:"target"|join:", "}} {{build.machine}} - {{build.project.name}} - Toaster {% endblock %} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | {% block localbreadcrumb %} |
| 7 | <li>Packages</li> |
| 8 | {% endblock %} |
| 9 | |
| 10 | {% block nav-packages %} |
| 11 | <li class="active"><a href="{% url 'packages' build.pk %}">Packages</a></li> |
| 12 | {% endblock %} |
| 13 | |
| 14 | {% block buildinfomain %} |
| 15 | <div class="span10"> |
| 16 | |
| 17 | {% if not request.GET.filter and not request.GET.search and not objects.paginator.count %} |
| 18 | |
| 19 | <!-- Empty - no data in database --> |
| 20 | <div class="page-header"> |
| 21 | <h1> |
| 22 | Packages |
| 23 | </h1> |
| 24 | </div> |
| 25 | <div class="alert alert-info lead"> |
| 26 | <strong>No packages were built.</strong> How did this happen? Well, BitBake reuses as much stuff as possible. |
| 27 | If all of the packages needed were already built and available in your build infrastructure, BitBake |
| 28 | will not rebuild any of them. This might be slightly confusing, but it does make everything faster. |
| 29 | </div> |
| 30 | |
| 31 | {% else %} |
| 32 | |
| 33 | <div class="page-header"> |
| 34 | <h1> |
| 35 | {% if request.GET.search and objects.paginator.count > 0 %} |
| 36 | {{objects.paginator.count}} package{{objects.paginator.count|pluralize}} found |
| 37 | {%elif request.GET.search and objects.paginator.count == 0%} |
| 38 | No packages found |
| 39 | {%else%} |
| 40 | Packages |
| 41 | {%endif%} |
| 42 | </h1> |
| 43 | </div> |
| 44 | |
| 45 | {% if objects.paginator.count == 0 %} |
| 46 | <div class="row-fluid"> |
| 47 | <div class="alert"> |
| 48 | <form class="no-results input-append" id="searchform"> |
| 49 | <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 %} |
| 50 | <button class="btn" type="submit" value="Search">Search</button> |
| 51 | <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all packages</button> |
| 52 | </form> |
| 53 | </div> |
| 54 | </div> |
| 55 | |
| 56 | {% else %} |
| 57 | {% include "basetable_top.html" %} |
| 58 | |
| 59 | {% for package in objects %} |
| 60 | |
| 61 | <tr class="data"> |
| 62 | |
| 63 | <!-- Package --> |
| 64 | <td class="package_name"><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td> |
| 65 | <!-- Package Version --> |
| 66 | <td class="package_version">{%if package.version%}<a href="{% url "package_built_detail" build.pk package.pk %}">{{package.version}}-{{package.revision}}</a>{%endif%}</td> |
| 67 | <!-- Package Size --> |
| 68 | <td class="size sizecol">{{package.size|filtered_filesizeformat}}</td> |
| 69 | <!-- License --> |
| 70 | <td class="license">{{package.license}}</td> |
| 71 | |
| 72 | {%if package.recipe%} |
| 73 | <!-- Recipe --> |
| 74 | <td class="recipe__name"><a href="{% url "recipe" build.pk package.recipe.pk %}">{{package.recipe.name}}</a></td> |
| 75 | <!-- Recipe Version --> |
| 76 | <td class="recipe__version"><a href="{% url "recipe" build.pk package.recipe.pk %}">{{package.recipe.version}}</a></td> |
| 77 | |
| 78 | <!-- Layer --> |
| 79 | <td class="recipe__layer_version__layer__name">{{package.recipe.layer_version.layer.name}}</td> |
| 80 | <!-- Layer branch --> |
| 81 | <td class="recipe__layer_version__branch">{{package.recipe.layer_version.branch}}</td> |
| 82 | <!-- Layer commit --> |
| 83 | <td class="recipe__layer_version__layer__commit"> |
| 84 | <a class="btn" |
| 85 | data-content="<ul class='unstyled'> |
| 86 | <li>{{package.recipe.layer_version.commit}}</li> |
| 87 | </ul>"> |
| 88 | {{package.recipe.layer_version.commit|truncatechars:13}} |
| 89 | </a> |
| 90 | </td> |
| 91 | <!-- Layer directory --> |
| 92 | {%else%} |
| 93 | <td class="recipe__name"></td> |
| 94 | <td class="recipe__version"></td> |
| 95 | <td class="recipe__layer_version__layer__name"></td> |
| 96 | <td class="recipe__layer_version__branch"></td> |
| 97 | <td class="recipe__layer_version__layer__commit"></td> |
| 98 | <td class="recipe__layer_version__local_path"></td> |
| 99 | {%endif%} |
| 100 | |
| 101 | </tr> |
| 102 | {% endfor %} |
| 103 | |
| 104 | {% include "basetable_bottom.html" %} |
| 105 | {% endif %} {# objects.paginator.count #} |
| 106 | {% endif %} {# Empty #} |
| 107 | </div> |
| 108 | {% endblock %} |