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

Specifying the covering recipe in the comparison recipe detail page was always a bit awkward - you could only type the name, if you wanted to actually find a recipe or look up the currently selected one's details then you had to open another browser tab/window. To fix this, replace the form on the comparison recipe detail page with a side-by-side display of the covering recipe's information, along with a button that lets you search and then select the covering recipe and at the same time enter comments or set any of the other cover fields. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
72 lines
3.3 KiB
HTML
72 lines
3.3 KiB
HTML
{% extends "layerindex/comparisonrecipebase.html" %}
|
|
{% load i18n %}
|
|
|
|
{% comment %}
|
|
|
|
layerindex-web - comparison recipe detail page template
|
|
|
|
Copyright (C) 2013, 2018 Intel Corporation
|
|
Licensed under the MIT license, see COPYING.MIT for details
|
|
|
|
{% endcomment %}
|
|
|
|
|
|
<!--
|
|
{% autoescape on %}
|
|
{% block title_append %} - {{ branch.short_description }} - {{ recipe.pn }}{% endblock %}
|
|
{% endautoescape %}
|
|
-->
|
|
|
|
{% block breadcrumbs %}
|
|
<ul class="breadcrumb">
|
|
<li><a href="{% url 'comparison_recipe_search' branch.name %}">{{ branch.short_description }}</a> <span class="divider">→</span></li>
|
|
<li class="active">{{ recipe.name }}</li>
|
|
</ul>
|
|
{% endblock %}
|
|
|
|
{% block page_heading %}
|
|
<div class="page-header">
|
|
<h1>{{ recipe.name }} {{ recipe.pv }}</h1>
|
|
</div>
|
|
{% if branch.name == 'oe-classic' %}
|
|
<div class="alert alert-warning">
|
|
<b>NOTE:</b> This recipe is for OE-Classic, the older monolithic version of OpenEmbedded which is no longer actively developed. See below for migration information. If no replacement is available in current OpenEmbedded layers, you may be able to <a href="http://www.openembedded.org/wiki/Migrating_metadata_to_OE-Core">migrate the recipe</a> yourself.
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block to_recipe_extra %}{% if recipe.cover_verified %} <span class="label label-info">verified</span>{% endif %}{% if recipe.needs_attention %} <span class="label label-warning">needs attention</span>{% endif %}{% endblock %}
|
|
|
|
{% block selectbuttons %}
|
|
{% if can_edit %}
|
|
<a href="{% url 'comparison_select' recipe.id %}?q={{recipe.pn}}" class="btn btn-info">Select...</a>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block origin_row %}
|
|
{% if branch.name == 'oe-classic' %}
|
|
<th>Origin</th>
|
|
{% else %}
|
|
<th>Distro / Layer</th>
|
|
{% endif %}
|
|
<td><a href="{% url 'comparison_recipe_search' branch.name %}">{{ branch.short_description }}</a></td>
|
|
<td>{% if cover_recipe %}<a href="{% url 'layer_item' cover_recipe.layerbranch.branch.name cover_recipe.layerbranch.layer.name %}">{{ cover_recipe.layerbranch.layer }} ({{ cover_recipe.layerbranch.branch.name }} branch)</a>{% endif %}</td>
|
|
{% endblock %}
|
|
|
|
{% block table_extra %}
|
|
{% if recipe.extra_urls %}
|
|
<tr>
|
|
<th>Extra links</th>
|
|
<td>
|
|
<ul class="unstyled">
|
|
{% for extra_url in recipe.extra_urls %}
|
|
<li><a href="{{ extra_url.url }}">{{ extra_url.name }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</td>
|
|
<td>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
{% endblock %}
|