mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2026-01-27 09:01:24 +01:00
Turn the existing OE-Classic support into something a bit more generic so we can import data from other distributions and compare it to what we have in layers. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
200 lines
8.0 KiB
HTML
200 lines
8.0 KiB
HTML
{% extends "base.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 content %}
|
|
{% autoescape on %}
|
|
|
|
<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>
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row-fluid">
|
|
|
|
<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 %}
|
|
|
|
<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 }}{% if branch.name == 'oe-classic' %}*{% endif %}</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>{% if branch.name == 'oe-classic' %}Recipe file{% else %}Package file{% endif %}</th>
|
|
<td>
|
|
{% if recipe.vcs_web_url %}
|
|
<a href="{{ recipe.vcs_web_url }}">{{ recipe.full_path }}</a>
|
|
{% else %}
|
|
{{ recipe.full_path }}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
{% if branch.name == 'oe-classic' %}
|
|
<p>* - in OE-Classic, some of the license values were not accurate. Please refer to current recipes (if available) for this information.</p>
|
|
{% endif %}
|
|
|
|
<h2>Patches</h2>
|
|
{% if recipe.patch_set.exists %}
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Patch</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for patch in recipe.patch_set.all %}
|
|
<tr>
|
|
<td><a href="{{ patch.vcs_web_url }}">{{ patch.src_path }}</a></td>
|
|
<td>{{ patch.get_status_display }} {{ patch.status_extra }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>None</p>
|
|
{% endif %}
|
|
|
|
{% if branch.name == 'oe-classic' %}
|
|
<h2>Migration information</h2>
|
|
{% else %}
|
|
<h2>Comparison information</h2>
|
|
{% endif %}
|
|
|
|
{% if can_edit %}
|
|
<form id="migration_form" class="form-inline" method="post">
|
|
{% csrf_token %}
|
|
{% for hidden in form.hidden_fields %}
|
|
{{ hidden }}
|
|
{% endfor %}
|
|
|
|
Coverage {{ form.cover_status }} <span id="id_span_cover_opts">by {{ form.cover_pn }} in {{ form.cover_layerbranch }}</span>
|
|
<label class="checkbox" id="id_label_cover_verified">
|
|
{{ form.cover_verified }} verified
|
|
</label>
|
|
<p>
|
|
<label>
|
|
Comment
|
|
{{ form.cover_comment }}
|
|
</label>
|
|
</p>
|
|
<p>
|
|
<label>
|
|
Category
|
|
{{ form.classic_category }}
|
|
</p>
|
|
</label>
|
|
<input type="submit" value="Save" class='btn' />
|
|
</form>
|
|
{% else %}
|
|
<table class="table table-striped table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<th class="span2">Coverage</th>
|
|
<td>{{ recipe.get_cover_desc }}</td>
|
|
</tr>
|
|
{% if recipe.cover_pn %}
|
|
<th>Covering recipe</th>
|
|
<td>{% if cover_recipe %}<a href="{% url 'recipe' cover_recipe.id %}">{% endif %}{{ recipe.cover_pn }}{% if cover_recipe %}</a>{% endif %}{% if recipe.cover_layerbranch %} (in <a href="{% url 'layer_item' 'master' recipe.cover_layerbranch.layer.name %}">{{ recipe.cover_layerbranch.layer.name }}</a>){% endif %}</td>
|
|
{% endif %}
|
|
<tr>
|
|
<th>Categories</th>
|
|
<td>{{ recipe.classic_category }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
{% endautoescape %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
<script>
|
|
enable_value_field = function() {
|
|
cover_status = $('#id_cover_status').val()
|
|
if( cover_status == 'U' || cover_status == 'N' || cover_status == 'S' ) {
|
|
$('#id_cover_pn').prop('readonly', true);
|
|
$('#id_cover_layerbranch').prop('readonly', true);
|
|
$('#id_cover_verified').prop('readonly', true);
|
|
$('#id_label_cover_verified').addClass('muted');
|
|
$('#id_span_cover_opts').addClass('muted');
|
|
}
|
|
else {
|
|
$('#id_cover_pn').prop('readonly', false);
|
|
$('#id_cover_layerbranch').prop('readonly', false);
|
|
$('#id_cover_verified').prop('readonly', false);
|
|
$('#id_label_cover_verified').removeClass('muted');
|
|
$('#id_span_cover_opts').removeClass('muted');
|
|
}
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
$('#id_cover_status').change(enable_value_field)
|
|
enable_value_field()
|
|
});
|
|
</script>
|
|
{% endblock %}
|