layerindex-web/templates/layerindex/classicrecipes.html
Paul Eggleton c3a8eb4d82 Add support for importing OE-Classic recipes
Add a script for doing a one-time import of OE-Classic recipe
information, so comparisons against OE-Core can be performed; this
is stored using a new ClassicRecipe model supporting additional fields
for tracking migration status. The migration status fields can be
updated as well as viewed and summarised in graph format.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-09-05 00:31:22 +01:00

116 lines
3.9 KiB
HTML

{% extends "layerindex/classic_base.html" %}
{% load i18n %}
{% comment %}
layerindex-web - OE-Classic recipe search page template
Copyright (C) 2013 Intel Corporation
Licensed under the MIT license, see COPYING.MIT for details
{% endcomment %}
<!--
{% block title_append %} - OE-Classic recipes{% endblock %}
-->
{% block navs %}
{% autoescape on %}
<li class="active"><a href="{% url classic_recipe_search %}">Recipes</a></li>
<li><a href="{% url classic_recipe_stats %}">Stats</a></li>
{% endautoescape %}
{% endblock %}
{% block content_inner %}
{% autoescape on %}
<div class="row-fluid">
<div class="span12">
<h2>OE-Classic recipes</h2>
<div class="alert alert-warning">
<b>NOTE:</b> This is the recipe search for OE-Classic, the older monolithic version of OpenEmbedded which is no longer actively developed. <a href="{% url recipe_search 'master' %}">Click here</a> to search current recipes.
</div>
<div class="row-fluid">
<form id="search-form" class="form-inline" method="GET">
<table class="search-form-table">
<tbody>
{% for field in search_form.visible_fields %}
<tr>
<td>
{{ field.label }}
</td>
<td>
{{ field }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<button class="btn" type="submit">Search</button>
</form>
</div>
{% if recipe_list %}
<table class="table table-striped table-bordered recipestable">
<thead>
<tr>
<th>Recipe name</th>
<th>Version</th>
<th class="span7">Description</th>
<th class="span5">Status</th>
<th>Categories</th>
{% if multi_classic_layers %}
<th>Layer</th>
{% endif %}
</tr>
</thead>
<tbody>
{% for recipe in recipe_list %}
<tr {% if recipe.preferred_count > 0 %}class="muted"{% endif %}>
<td><a href="{% url classic_recipe recipe.id %}">{{ recipe.name }}</a></td>
<td>{{ recipe.pv }}</td>
<td>{{ recipe.short_desc }}</td>
<td>{{ recipe.get_cover_desc }}</td>
<td>{{ recipe.classic_category }}</td>
{% if multi_classic_layers %}
<td><a href="{% url layer_item recipe.layerbranch.layer.name %}">{{ recipe.layerbranch.layer.name }}</a></td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
{% if is_paginated %}
{% load pagination %}
{% pagination page_obj %}
{% endif %}
{% else %}
{% if searched %}
<p>No matching OE-Classic recipes in database.</p>
{% endif %}
{% endif %}
</div>
</div>
{% endautoescape %}
{% endblock %}
{% block scripts %}
<script>
$(document).ready(function() {
firstfield = $("#search-form input:text").first()
if( ! firstfield.val() )
firstfield.focus()
});
</script>
{% endblock %}