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

Change the data structure to support multiple branches. At the top level there is a set list of Branch objects, and then a LayerBranch object between each layer and the maintainers, dependencies, recipes and machines, so that the set of each can be different per branch. The branch is a session option, and can be selected via a drop-down that is shown for all pages. Additionally, with this change we avoid the need to run the update script within a build environment set up with oe-init-build-env - since we need a specific version of BitBake per branch we now use our own copy of BitBake which is fetched by the script itself. The update script will need to be called multiple times however - once per branch. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
78 lines
2.4 KiB
HTML
78 lines
2.4 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% comment %}
|
|
|
|
layerindex-web - machine index page template
|
|
|
|
Copyright (C) 2013 Intel Corporation
|
|
Licensed under the MIT license, see COPYING.MIT for details
|
|
|
|
{% endcomment %}
|
|
|
|
|
|
<!--
|
|
{% block title %}OpenEmbedded metadata index - machines{% endblock %}
|
|
-->
|
|
|
|
{% block content %}
|
|
{% autoescape on %}
|
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span9 offset1">
|
|
|
|
<ul class="nav nav-tabs">
|
|
<li><a href="{% url layer_list %}">Layer index</a></li>
|
|
<li><a href="{% url recipe_search %}">Recipe index</a></li>
|
|
<li class="active"><a href="{% url machine_search %}">Machine index</a></li>
|
|
</ul>
|
|
|
|
<div class="row-fluid">
|
|
<div class="input-append">
|
|
<form id="filter-form" action="{% url machine_search %}" method="get">
|
|
<input type="text" class="input-xxlarge" id="appendedInputButtons" placeholder="Search machines" name="q" value="{{ search_keyword }}" />
|
|
<button class="btn" type="submit">search</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
{% if machine_list %}
|
|
<table class="table table-striped table-bordered machinestable">
|
|
<thead>
|
|
<tr>
|
|
<th>Machine name</th>
|
|
<th class="span9">Description</th>
|
|
<th>Layer</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{% for machine in machine_list %}
|
|
<tr>
|
|
<td><a href="{{ machine.vcs_web_url }}">{{ machine.name }}</a></td>
|
|
<td>{{ machine.description }}</td>
|
|
<td><a href="{% url layer_item machine.layerbranch.layer.name %}">{{ machine.layerbranch.layer.name }}</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% if is_paginated %}
|
|
{% load pagination %}
|
|
{% pagination page_obj %}
|
|
{% endif %}
|
|
{% else %}
|
|
{% if search_keyword %}
|
|
<p>No matching machines in database.</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endautoescape %}
|
|
|
|
{% endblock %}
|