mirror of
https://git.yoctoproject.org/poky
synced 2026-04-01 05:02:21 +02:00
Implement the navigation links as blocks so that each page can override and have its respective link appear highlighted. Make the build breadcrumb a block so that it is customizable to not be a link for the dashboard page. Reorder the page headers to be consistent order for extends, projecttags, localbreadcrumb, nav-links. [YOCTO #5916] [YOCTO #4258] (Bitbake rev: cb26c4df04170143babd6c9fd60600bfb31486ed) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
103 lines
3.9 KiB
HTML
Executable File
103 lines
3.9 KiB
HTML
Executable File
{% extends "basebuildpage.html" %}
|
|
|
|
{% load projecttags %}
|
|
|
|
{% block localbreadcrumb %}
|
|
<li>Recipes</li>
|
|
{% endblock %}
|
|
|
|
{% block nav-recipes %}
|
|
<li class="active"><a href="{% url 'recipes' build.pk %}">Recipes</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}} recipe{{objects.paginator.count|pluralize}} found
|
|
{%elif request.GET.search and objects.paginator.count == 0%}
|
|
No recipes found
|
|
{%else%}
|
|
Recipes
|
|
{%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 recipes</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
{% else %}
|
|
{% 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> dependencies"
|
|
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> reverse dependencies"
|
|
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" %}
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|