mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00

To identify image recipes and provide inheritance data for recipes, an inherits field was added to the recipe model, and then populated using refactored data from __inherit_cache. Finally the field was also added to page templates, along with style changes proposed in attachment, and an additional style change to display the inherits field as a list in detailed view. The field skips globally inherited data as proposed. [YOCTO #7575] Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
135 lines
5.3 KiB
HTML
135 lines
5.3 KiB
HTML
{% 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">→</span></li>
|
|
<li><a href="{% url layer_item recipe.layerbranch.branch.name recipe.layerbranch.layer.name %}">{{ recipe.layerbranch.layer.name }}</a> <span class="divider">→</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 }}</h1>
|
|
</div>
|
|
|
|
<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 %}<a href="{{ recipe.homepage }}">{{ recipe.homepage }}</a>{% 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>
|
|
</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 %}
|